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. Upgrade from Qt 5.7 to 5.10 results in slower UI

Upgrade from Qt 5.7 to 5.10 results in slower UI

Scheduled Pinned Locked Moved Solved General and Desktop
11 Posts 6 Posters 2.2k Views 3 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
    #2

    Hi,

    Does it also happen with a minimal application ?

    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
    • Jonathan LevanonJ Offline
      Jonathan LevanonJ Offline
      Jonathan Levanon
      wrote on last edited by
      #3

      No. And your question lead me to checking all the widgets in my app, only my main screen is acting weird. Other are ok.

      JonBJ 1 Reply Last reply
      0
      • Jonathan LevanonJ Jonathan Levanon

        No. And your question lead me to checking all the widgets in my app, only my main screen is acting weird. Other are ok.

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

        @Jonathan-Levanon
        I use Qt 5.7 under Ubuntu 17.04. Next year I will move to 18.04, with whatever the Ubuntu release package version of Qt will be. So please let us know when you discover what on your main page is causing the issue, as it might be relevant. Thanks.

        1 Reply Last reply
        0
        • Jonathan LevanonJ Offline
          Jonathan LevanonJ Offline
          Jonathan Levanon
          wrote on last edited by
          #5

          Did some more research on it. Seems like it is caused by 4 widgets (A checkbox, combobox, and 2 widgets containing a line edit with buttons interacting with it) that are added to the main window layout. The common ground between these widgets are the fact that they are connected to slots that updates something on the main widget (hide/show calls for other widgets on that screen or changing text). If I remove them from the layout, it's working fine. But of course, I can't do that. Any thoughts?

          JKSHJ 1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #6

            A wild thought: check if it helps if you turn Qt Accessibility on or off. Maybe it has some mysterious influence here.

            (Z(:^

            1 Reply Last reply
            1
            • Jonathan LevanonJ Offline
              Jonathan LevanonJ Offline
              Jonathan Levanon
              wrote on last edited by
              #7

              Thanks. Tried QAccessible::setActive(true), and QAccessible::setActive(false), before and after creating the QApplication, didn't help.

              1 Reply Last reply
              0
              • Jonathan LevanonJ Jonathan Levanon

                Did some more research on it. Seems like it is caused by 4 widgets (A checkbox, combobox, and 2 widgets containing a line edit with buttons interacting with it) that are added to the main window layout. The common ground between these widgets are the fact that they are connected to slots that updates something on the main widget (hide/show calls for other widgets on that screen or changing text). If I remove them from the layout, it's working fine. But of course, I can't do that. Any thoughts?

                JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by
                #8

                @Jonathan-Levanon said in Upgrade from Qt 5.7 to 5.10 results in slower UI:

                Any thoughts?

                Not at the moment... but I'm wondering if you can create a smaller example that reproduces this problem? That might help us find a fix.

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                1 Reply Last reply
                0
                • Jonathan LevanonJ Offline
                  Jonathan LevanonJ Offline
                  Jonathan Levanon
                  wrote on last edited by Jonathan Levanon
                  #9

                  Thank for all the comments so far. While building a smaller example, I've noticed that if it remove the background image from my main screen, the problem goes away. This is how I set it -
                  QPalette palette;
                  palette.setBrush(this->backgroundRole(), QBrush(QImage("/path/to/img.jpg").scaled(1870, 1020)));
                  this->setPalette(palette);

                  Any thoughts? Any way to workaround it? Tried using various CSS solutions but none of them gets stretched and all of them override subwidgets...

                  1 Reply Last reply
                  0
                  • Jonathan LevanonJ Offline
                    Jonathan LevanonJ Offline
                    Jonathan Levanon
                    wrote on last edited by
                    #10

                    If anybody cares - I change my main widget to a QFrame, and then used

                        setStyleSheet("QFrame {background-image: url(/path/to/img.bmp);}");
                    
                    

                    This works ok.

                    aha_1980A 1 Reply Last reply
                    2
                    • Jonathan LevanonJ Jonathan Levanon

                      If anybody cares - I change my main widget to a QFrame, and then used

                          setStyleSheet("QFrame {background-image: url(/path/to/img.bmp);}");
                      
                      

                      This works ok.

                      aha_1980A Offline
                      aha_1980A Offline
                      aha_1980
                      Lifetime Qt Champion
                      wrote on last edited by
                      #11

                      @Jonathan-Levanon said in Upgrade from Qt 5.7 to 5.10 results in slower UI:

                      If anybody cares - I change my main widget to a QFrame, and then used

                      Yes, we do - thanks for your feedback :)

                      So please mark this thread as solved now, so others know a solution has been found.

                      Qt has to stay free or it will die.

                      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