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. QTQuickItem and QT_SCALE_FACTOR

QTQuickItem and QT_SCALE_FACTOR

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 125 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.
  • H Offline
    H Offline
    Hurlu
    wrote on last edited by
    #1

    Hi!
    I'm curently having a problem with QTQuickItem, where, upon the use of the QT_SCALE_FACTOR, the framebuffer's height and width are divided by two, displaying this result: OSGQT scale2.png .

    I have been able to workaround this issue by catching the value of QT_SCALE_FACTOR, and multiplying factors such as the input position and the window size by this.
    Here is the source code of a demo: you will need OpenSceneGraph and QT to compile it if you wish to do so. (I'm using 3.4 and 5.9 respectively.)

    However, I don't feel like this shrinking behavior is expected from the QtQuickItem. Does anyone have an idea of a better solution instead of my proposed workaround ?
    Thanks !

    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