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. Small resolutions problem

Small resolutions problem

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 3 Posters 708 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.
  • R Offline
    R Offline
    rezor
    wrote on 29 May 2023, 06:44 last edited by
    #1

    Hello, when I change window size on small resolution (e.g. 800x600), then window is rapidly moving out of screen - when I move mouse to the left by one pixel while resizing, window is significantly moving to the right, when I move mouse by 3 pixels, then window is outside of screen
    I don't have any logic in resizeEvent in QMainWindow
    do you know maybe what is the problem or where it might lie?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 29 May 2023, 19:12 last edited by
      #2

      Hi and welcome to devnet,

      Which version of Qt are you using ?
      On which OS ?
      If Linux:

      • Which desktop environment are you using ?
      • Which window manager ?

      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
      0
      • R Offline
        R Offline
        rezor
        wrote on 30 May 2023, 06:41 last edited by
        #3

        I'm using QT 5.15.2
        OS is Windows Server 2019 Standard

        S 1 Reply Last reply 30 May 2023, 20:02
        0
        • R rezor
          30 May 2023, 06:41

          I'm using QT 5.15.2
          OS is Windows Server 2019 Standard

          S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 30 May 2023, 20:02 last edited by
          #4

          Might be a silly question but do you having any zooming enabled when you have that low resolution issue ?

          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
          0
          • R Offline
            R Offline
            rezor
            wrote on 3 Jun 2023, 07:48 last edited by
            #5

            no, I don't

            S 1 Reply Last reply 3 Jun 2023, 19:53
            0
            • R rezor
              3 Jun 2023, 07:48

              no, I don't

              S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 3 Jun 2023, 19:53 last edited by
              #6

              How are you resizing your window ?

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

              R 1 Reply Last reply 5 Jun 2023, 06:42
              0
              • S SGaist
                3 Jun 2023, 19:53

                How are you resizing your window ?

                R Offline
                R Offline
                rezor
                wrote on 5 Jun 2023, 06:42 last edited by rezor 6 May 2023, 06:42
                #7

                like normal app, I click on borders and move them
                I think that I didn't mention, that on high res it works correctly, this thing happens only on lower resolutions

                it looks like that, as you can see im moving mouse just by few pixels:
                alt text

                J 1 Reply Last reply 5 Jun 2023, 20:10
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 5 Jun 2023, 19:50 last edited by
                  #8

                  Is it a frameless window ?

                  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
                  0
                  • R rezor
                    5 Jun 2023, 06:42

                    like normal app, I click on borders and move them
                    I think that I didn't mention, that on high res it works correctly, this thing happens only on lower resolutions

                    it looks like that, as you can see im moving mouse just by few pixels:
                    alt text

                    J Online
                    J Online
                    JoeCFD
                    wrote on 5 Jun 2023, 20:10 last edited by
                    #9

                    @rezor
                    I guess you set
                    QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
                    on high resolutions

                    Did you set it back
                    QGuiApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
                    on lower resolutions ?

                    1 Reply Last reply
                    0

                    8/9

                    5 Jun 2023, 19:50

                    • Login

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