Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
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 14.1k 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.
  • 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