Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How keep the length-width ratio of the on-top text fixed in Qt3D

How keep the length-width ratio of the on-top text fixed in Qt3D

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 242 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wang_qt
    wrote on last edited by wang_qt
    #1

    0_1542275765889_u1.jpg

    0_1542275823433_u2.jpg

    From the above figures, you can see that the length-width ratio of the on-top text is changed as change that of the window. How to keep the length-width ratio of the on-top text fixed? Thank you.

    The source code is put in
    https://drive.google.com/file/d/1oagZhCfVKvCooEev7Vo4XC8q-PAF8aTq/view?usp=sharing

    This project is created by Qt creator, and the related code can be found in void OnTopTextDisplay(Qt3DCore::QEntity *rootEntity) in main.cpp.

    The on-top effect is realized through GLSL.

    Thank you in advance.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved