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. QOpenGLWidget bad display with QT_SCREEN_SCALE_FACTORS=1.5
Forum Updated to NodeBB v4.3 + New Features

QOpenGLWidget bad display with QT_SCREEN_SCALE_FACTORS=1.5

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 1 Posters 167 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.
  • P Offline
    P Offline
    Pavel Celba
    wrote on last edited by
    #1

    I have a problem that QOpenGLWidget is not acting properly when using QT_SCREEN_SCALE_FACTORS set to something bigger than 1 (on any system Windows / Linux) and also when Linux system users of KDE set font scaling to bigger factor.
    The resulting real QOpenGLWidget area is just proportional to the window size as can be seen on the picture:
    ricardo_desk_1TSi2SzDMX.png

    This is on Qt 5.15. How can this be fixed?

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Pavel Celba
      wrote on last edited by
      #2

      Disregard this - the bug is in our code which is setting glViewport() to the size of the widget in the paintGl().

      1 Reply Last reply
      1

      • Login

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