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

Small resolutions problem

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 3 Posters 853 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.
  • R Offline
    R Offline
    rezor
    wrote on 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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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 last edited by
        #3

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

        SGaistS 1 Reply Last reply
        0
        • R rezor

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

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on 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 last edited by
            #5

            no, I don't

            SGaistS 1 Reply Last reply
            0
            • R rezor

              no, I don't

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on 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
              0
              • SGaistS SGaist

                How are you resizing your window ?

                R Offline
                R Offline
                rezor
                wrote on last edited by rezor
                #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

                JoeCFDJ 1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 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

                    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

                    JoeCFDJ Offline
                    JoeCFDJ Offline
                    JoeCFD
                    wrote on 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

                    • Login

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