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. Replacement for QT4 X11Info::setAppDpiX function in QT5 ?
Forum Updated to NodeBB v4.3 + New Features

Replacement for QT4 X11Info::setAppDpiX function in QT5 ?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 370 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.
  • D Offline
    D Offline
    DalePennington
    wrote on last edited by
    #1

    Folks,

    I am porting an existing software system from QT4 to QT5. In one of the apps, they use the X11Info class setAppDpiX (and Y) functions. These no longer exist in QT5, and I could see no sign of an alternate.
    Is there an alternate way to achieve this result ? Or was this functionality removed from Qt as too rare and specific a thing ?

    The original comment on it says it solves a font sizing problem when running on full high definition displays.

    Thanks,
    Dale Pennington

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @DalePennington said in Replacement for QT4 X11Info::setAppDpiX function in QT5 ?:

      Is there an alternate way to achieve this result ? Or was this functionality removed from Qt as too rare and specific a thing ?

      Yes, this was removed and there is no replacement.
      HighDPI is directly supported by Qt nowadays.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2
      • D Offline
        D Offline
        DalePennington
        wrote on last edited by
        #3

        So just to confirm,

        In Qt 4, the code set the AppDpiX and Y to 100. The equivalent it now always done by Qt, so this fix is not needed ?

        Dale Pennington

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @DalePennington said in Replacement for QT4 X11Info::setAppDpiX function in QT5 ?:

          The equivalent it now always done by Qt

          No, this is not true - I said HighDPI is supported out of the box by Qt5.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          1
          • D Offline
            D Offline
            DalePennington
            wrote on last edited by
            #5

            I guess for now we will need to experiment to see how to get this work right (I looked at the HighDPI page in the documentation), and otherwise see what we might need to do.

            If we get more questions I will be sure to ask again.

            Thanks,
            Dale

            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