Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-25083

Support for HiDPI

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 4.8.0
    • GUI: Look'n'Feel
    • None
    • Mac 10.7.3 or latter.

    Description

      Qt GUI does not provide support for HiDPI. Changing the following methods in the QPaintDevice_mac.cpp file might be helpful and can be easily done by using QSysInfo at run time.

      /*! \internal */
      float qt_mac_defaultDpi_x()
      {
          // Mac OS X currently assumes things to be 72 dpi.
          // (see http://developer.apple.com/releasenotes/GraphicsImaging/RN-ResolutionIndependentUI/)
          // This may need to be re-worked as we go further in the resolution-independence stuff.
          return 72;
      }
      
      /*! \internal */
      float qt_mac_defaultDpi_y()
      {
          // Mac OS X currently assumes things to be 72 dpi.
          // (see http://developer.apple.com/releasenotes/GraphicsImaging/RN-ResolutionIndependentUI/)
          // This may need to be re-worked as we go further in the resolution-independence stuff.
          return 72;
      }
      
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            thwijeth Tharanga Wijethilake (Inactive)
            Votes:
            9 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes