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

Screen overrun

Scheduled Pinned Locked Moved Unsolved General and Desktop
19 Posts 5 Posters 880 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 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

                          1 Reply Last reply
                          1

                          • Login

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