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. Screen Resolution
Forum Updated to NodeBB v4.3 + New Features

Screen Resolution

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 323 Views 1 Watching
  • 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.
  • S Offline
    S Offline
    satyanarayana143
    wrote on last edited by aha_1980
    #1

    Hi friends,

    I am using QFrame setting minimum width 100 it should resize according to Resolution how can i set.

    I am setting QApplication::setAttribute(Qt::AA_EnableHighDpiScaling) but it is not working in windows.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      100px is the same value whether you have a screen in SD, HD or UHD resolution.

      For example, if you want your frame to always be at least one third of the screen, then you have to get the resolution of the screen and make its size one third of that.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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