Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt5 QML App not visible when change the resolution ?
Qt 6.11 is out! See what's new in the release blog

Qt5 QML App not visible when change the resolution ?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
17 Posts 5 Posters 4.7k Views 2 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

    Hi,

    Is your application moved outside of the visible part of the screen ?

    A Offline
    A Offline
    Alex_wang
    wrote on last edited by Alex_wang
    #5

    @SGaist

    Does it have an event in Qt5.9.3 that notices the connector resolution changing ?

    D 1 Reply Last reply
    0
    • A Alex_wang

      @SGaist

      Does it have an event in Qt5.9.3 that notices the connector resolution changing ?

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

      @Alex_wang

      Yes, of course. Read the following document.

      QScreen
      Screen

      like this:

      #include <QScreen>
      [...]
      QScreen     *screen = QApplication::primaryScreen();
      QObject::connect(screen, &QScreen::geometryChanged, [](const QRect &geometry){ qDebug() << geometry; });
      [...]
      
      A 1 Reply Last reply
      0
      • D Devopia53

        @Alex_wang

        Yes, of course. Read the following document.

        QScreen
        Screen

        like this:

        #include <QScreen>
        [...]
        QScreen     *screen = QApplication::primaryScreen();
        QObject::connect(screen, &QScreen::geometryChanged, [](const QRect &geometry){ qDebug() << geometry; });
        [...]
        
        A Offline
        A Offline
        Alex_wang
        wrote on last edited by
        #7

        @Devopia53 said in Qt5 QML App not visible when change the resolution ?:

        QObject::connect(screen, &QScreen::geometryChanged, [](const QRect &geometry){ qDebug() << geometry; });

        Hi, it is not helpful for me.

        when I change the resolution, the screen (QApplication::primaryScreen()) is not changed....

        jsulmJ 1 Reply Last reply
        0
        • A Alex_wang

          @Devopia53 said in Qt5 QML App not visible when change the resolution ?:

          QObject::connect(screen, &QScreen::geometryChanged, [](const QRect &geometry){ qDebug() << geometry; });

          Hi, it is not helpful for me.

          when I change the resolution, the screen (QApplication::primaryScreen()) is not changed....

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #8

          @Alex_wang Do you mean the QScreen::geometryChanged signal is not emitted?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

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

            By the way, how are you changing the resolution ?

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

            A 1 Reply Last reply
            0
            • SGaistS SGaist

              By the way, how are you changing the resolution ?

              A Offline
              A Offline
              Alex_wang
              wrote on last edited by
              #10

              @SGaist
              change the resolution by an app "drm_modeset":

              sudo ./drm_modeset -s 1920x1080@60
              
              A 1 Reply Last reply
              0
              • A Alex_wang

                @SGaist
                change the resolution by an app "drm_modeset":

                sudo ./drm_modeset -s 1920x1080@60
                
                A Offline
                A Offline
                Alex_wang
                wrote on last edited by
                #11

                after changed the resolution, the surface or screen or window for qt5 app is still depending on last resolution.
                the reason is on four floor

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

                  See here and the QT_QPA_EGLFS_ALWAYS_SET_MODE environment variable.

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

                  A 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    See here and the QT_QPA_EGLFS_ALWAYS_SET_MODE environment variable.

                    A Offline
                    A Offline
                    Alex_wang
                    wrote on last edited by
                    #13

                    @SGaist
                    I have got it . It means I still have to relaunch the application.

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

                      Do you have any other application running on your system ?

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

                      A 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        Do you have any other application running on your system ?

                        A Offline
                        A Offline
                        Alex_wang
                        wrote on last edited by
                        #15

                        @SGaist
                        The decoded video is also rendered by DRM, which is running on my system.

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

                          You have to give more details about your system and what it does.

                          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
                          • A Alex_wang

                            @SGaist
                            The decoded video is also rendered by DRM, which is running on my system.

                            M Offline
                            M Offline
                            Michael Chen
                            wrote on last edited by
                            #17

                            @Alex_wang
                            Have you found a solution? I'm also having the same problem.

                            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