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. Cross-platform app, UI in MacOS is double in size compared to the Linux and Windows version
QtWS25 Last Chance

Cross-platform app, UI in MacOS is double in size compared to the Linux and Windows version

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 898 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.
  • X Offline
    X Offline
    XapaJIaMnu
    wrote on last edited by
    #1

    Hey,

    I have been developing an app, which I plan to release in the very near future. I am developing on linux and testing on Windows and Mac. On Linux and Windows the GUI looks precisely the way I expect it to look, but on MacOS everything is doubled in size (the dimensions of the window are doubled in size, the buttons' height and width are doubled, the textboxes' heigth and width are doubled... you get the point...)

    What I find even more confusing is that when running QtCreator on MacOS and I visually design my interface, I have the same dimensions as the linux and windows version, but it appears doubled in size. The problem appears on both Retina and non-retina macs, as well as on Sierra, High Sierra and Mojave.

    Any ideas?

    Cheers,

    Nick

    J.HilkJ 1 Reply Last reply
    0
    • X XapaJIaMnu

      Hey,

      I have been developing an app, which I plan to release in the very near future. I am developing on linux and testing on Windows and Mac. On Linux and Windows the GUI looks precisely the way I expect it to look, but on MacOS everything is doubled in size (the dimensions of the window are doubled in size, the buttons' height and width are doubled, the textboxes' heigth and width are doubled... you get the point...)

      What I find even more confusing is that when running QtCreator on MacOS and I visually design my interface, I have the same dimensions as the linux and windows version, but it appears doubled in size. The problem appears on both Retina and non-retina macs, as well as on Sierra, High Sierra and Mojave.

      Any ideas?

      Cheers,

      Nick

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      hi @XapaJIaMnu

      check the scaling of your monitor (inside the Mac settings) its by default set to big scaling factor.


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      X 1 Reply Last reply
      0
      • J.HilkJ J.Hilk

        hi @XapaJIaMnu

        check the scaling of your monitor (inside the Mac settings) its by default set to big scaling factor.

        X Offline
        X Offline
        XapaJIaMnu
        wrote on last edited by XapaJIaMnu
        #3

        @J.Hilk the non-retina map has no scaling (resolution 1440x900). Windows has 2x scaling factor by default but looks much smaller than that...
        EDIT: Windows has 200% scaling, app looks the same as in Linux (more or less) which has 1.7 scaling.

        QtCreator also looks the same across mac/windows/linux, just my app looks different

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi
          You could try fiddling with the scale to see if that changes anything.
          https://doc.qt.io/qt-5/highdpi.html
          First test could be to check the Info.plist
          and see if scaling is enabled or not.

          1 Reply Last reply
          1
          • X Offline
            X Offline
            XapaJIaMnu
            wrote on last edited by
            #5

            Hey everybody,

            I think i found the problem. Linux and Windows scale fonts only by default, mac does blanket scaling of everything. Playing with Info.plist might improve the situation.

            Cheers,

            Nick

            1 Reply Last reply
            2

            • Login

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