Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Screen overrun
Qt 6.12 LTS is out! See what's new in the release blog

Screen overrun

Scheduled Pinned Locked Moved Unsolved General and Desktop
23 Posts 6 Posters 13.9k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #5

    Are you setting any fixed size on your application ?
    Which window manager are you using on the various devices ?

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

    D 1 Reply Last reply
    0
    • SGaistS SGaist

      Are you setting any fixed size on your application ?
      Which window manager are you using on the various devices ?

      D Offline
      D Offline
      dencla
      wrote on last edited by
      #6

      @SGaist No I'm not fixing a size other that what is generated by the ui. I'm moving the appllication from SUSE to a Rasbien system running KDE on both.

      JoeCFDJ 1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #7

        Are other applications behaving in a similar fashion ?

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

        D 1 Reply Last reply
        0
        • SGaistS SGaist

          Are other applications behaving in a similar fashion ?

          D Offline
          D Offline
          dencla
          wrote on last edited by
          #8

          @SGaist Other qt applications, yes, but not other applications in general.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #9

            Is KDE also having this issue ?
            Which version of Qt are you using ?
            How did you install it ?

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

            D 1 Reply Last reply
            0
            • SGaistS SGaist

              Is KDE also having this issue ?
              Which version of Qt are you using ?
              How did you install it ?

              D Offline
              D Offline
              dencla
              wrote on last edited by
              #10

              @SGaist KDE is not having the issue, I am running QT Creator version 9.02 on The newest version of Raspbien. Creator draws ok itself, it is when I run full screen applications created with QT that I have an issue. Windowed applications are fine. As I said before, even full screen the upper left corner is correct.

              1 Reply Last reply
              0
              • K Offline
                K Offline
                Kevin Hoang
                wrote on last edited by
                #11

                It sounds like your issue is related to scaled display settings. The system may apply display scaling to make text and UI elements larger and more readable. However, this also means that the physical size of the application window becomes larger than its logical size, potentially causing screen overrun.

                To handle this, you need to adjust your UI layout based on the display scale factor.

                1 Reply Last reply
                0
                • D dencla

                  @SGaist No I'm not fixing a size other that what is generated by the ui. I'm moving the appllication from SUSE to a Rasbien system running KDE on both.

                  JoeCFDJ Offline
                  JoeCFDJ Offline
                  JoeCFD
                  wrote on last edited by
                  #12

                  @dencla
                  On Yocto weston, these envs are needed to run qt apps. You may need them as well. Try these out in your main() and see if they help.
                  setenv( "DISPLAY", ":0", 1 );
                  setenv( "GDK_BACKEND", "wayland", 1 );
                  setenv( "QT_QPA_PLATFORM", "wayland", 1 );
                  setenv( "WAYLAND_DISPLAY", "wayland-1", 1 );

                  D 2 Replies Last reply
                  1
                  • JoeCFDJ JoeCFD

                    @dencla
                    On Yocto weston, these envs are needed to run qt apps. You may need them as well. Try these out in your main() and see if they help.
                    setenv( "DISPLAY", ":0", 1 );
                    setenv( "GDK_BACKEND", "wayland", 1 );
                    setenv( "QT_QPA_PLATFORM", "wayland", 1 );
                    setenv( "WAYLAND_DISPLAY", "wayland-1", 1 );

                    D Offline
                    D Offline
                    dencla54
                    wrote on last edited by
                    #13

                    @JoeCFD I will thanks.

                    1 Reply Last reply
                    0
                    • JoeCFDJ JoeCFD

                      @dencla
                      On Yocto weston, these envs are needed to run qt apps. You may need them as well. Try these out in your main() and see if they help.
                      setenv( "DISPLAY", ":0", 1 );
                      setenv( "GDK_BACKEND", "wayland", 1 );
                      setenv( "QT_QPA_PLATFORM", "wayland", 1 );
                      setenv( "WAYLAND_DISPLAY", "wayland-1", 1 );

                      D Offline
                      D Offline
                      dencla54
                      wrote on last edited by
                      #14

                      @JoeCFD I gave it a shot. I don't think I saw any change, but I will work with it some more. If I size my screen to fit the display it works, but I would rather not have to do that because I don't know what display it will run on.

                      JoeCFDJ 2 Replies Last reply
                      0
                      • D dencla54

                        @JoeCFD I gave it a shot. I don't think I saw any change, but I will work with it some more. If I size my screen to fit the display it works, but I would rather not have to do that because I don't know what display it will run on.

                        JoeCFDJ Offline
                        JoeCFDJ Offline
                        JoeCFD
                        wrote on last edited by
                        #15

                        @dencla54 QML or QWidgets?

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #16

                          I thought I posted an answer about this...

                          In any case, since other application are behaving correctly on the target, the good old technique is to strip down your application to a basic widget. Then add back piece by piece your elements until it starts breaking again.

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

                          D 1 Reply Last reply
                          1
                          • D dencla54

                            @JoeCFD I gave it a shot. I don't think I saw any change, but I will work with it some more. If I size my screen to fit the display it works, but I would rather not have to do that because I don't know what display it will run on.

                            JoeCFDJ Offline
                            JoeCFDJ Offline
                            JoeCFD
                            wrote on last edited by
                            #17
                            This post is deleted!
                            1 Reply Last reply
                            0
                            • SGaistS SGaist

                              I thought I posted an answer about this...

                              In any case, since other application are behaving correctly on the target, the good old technique is to strip down your application to a basic widget. Then add back piece by piece your elements until it starts breaking again.

                              D Offline
                              D Offline
                              dencla54
                              wrote on last edited by
                              #18

                              @SGaist I don't understand the purpose of this. Are you saying that adding a widget to a window causes some error and I'm looking for which one? I have resized all of my widgets to make them fit on the screen and that works, but I prefer not to have to do this as I do not know which screen I will run it on.

                              1 Reply Last reply
                              0
                              • SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #19

                                I don't know your widget so I can't comment however since you are saying that you are resizing things manually then there lies your problem. You should consider using layouts and you will that automatic resizing based on screen size.

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

                                D 1 Reply Last reply
                                1
                                • SGaistS SGaist

                                  I don't know your widget so I can't comment however since you are saying that you are resizing things manually then there lies your problem. You should consider using layouts and you will that automatic resizing based on screen size.

                                  D Offline
                                  D Offline
                                  dencla
                                  wrote on last edited by
                                  #20

                                  @SGaist When You say layouts what do you mean? I thought I was using them in UI.

                                  1 Reply Last reply
                                  0
                                  • SGaistS Offline
                                    SGaistS Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #21

                                    Are you setting them explicitly and assigning your widgets to them correctly ?
                                    Creating a UI in designer does not mean layouts are automatically used.

                                    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
                                    • D Offline
                                      D Offline
                                      dencla
                                      wrote on last edited by
                                      #22

                                      I guess i will have to investigate. What settings in the UI should I look for?

                                      JonBJ 1 Reply Last reply
                                      0
                                      • D dencla

                                        I guess i will have to investigate. What settings in the UI should I look for?

                                        JonBJ Offline
                                        JonBJ Offline
                                        JonB
                                        wrote on last edited by
                                        #23

                                        @dencla
                                        One simple thing from the Designer side: look at the Object Explorer at the right hand side, showing all your widgets in a hierarchical structure. If any widget nodes have a "red no entry" symbol on them that indicates you are missing a layout.

                                        To assign layouts in the UI you either right-click on a widget (once it has children) and set its Layout from there or there are actual layout items in the toolbox on the left to drag explicitly. I have never looked into whether they end up doing the same thing!

                                        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
                                        • Unsolved