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. Qt (maybe 5) became sluggish recently. Any ideas why?
QtWS25 Last Chance

Qt (maybe 5) became sluggish recently. Any ideas why?

Scheduled Pinned Locked Moved Unsolved General and Desktop
19 Posts 6 Posters 949 Views
  • 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.
  • V Offline
    V Offline
    Valso
    wrote on 10 Oct 2023, 12:41 last edited by Valso 10 Oct 2023, 12:45
    #8

    The most of strace (I ran kolourpaint) is full of EN0ENT about missing icons from hicolor and breeze but I doubt that's what causing the sluggishness, cuz I've always used these programs without their icon themes and never had this problem before.
    The rest of the strace is in this text file. It's way too long for the code tag, so I figured I'd put it in a text file: https://www.mediafire.com/file/i30uf1hssfqii4f/strace-of-kolourpaint.txt/file

    @JonB , I thought that me using Qt software kind of implies that I'm running Linux (Arch, if it matters what kind of linux), so I didn't think it was necessary for me to say that. Qt is a Linux-only thing.

    @J-Hilk, I do the updates manually, nothing is automated. The nvidia driver has been the same for about 6 months (525.89.02) and will continue to be so until nvidia finally fix their hundreds of problems. The kernel is LTS, if it matters. Whenever there are qt updates, I let it update everything there is to update.

    J 1 Reply Last reply 10 Oct 2023, 12:47
    0
    • V Valso
      10 Oct 2023, 12:41

      The most of strace (I ran kolourpaint) is full of EN0ENT about missing icons from hicolor and breeze but I doubt that's what causing the sluggishness, cuz I've always used these programs without their icon themes and never had this problem before.
      The rest of the strace is in this text file. It's way too long for the code tag, so I figured I'd put it in a text file: https://www.mediafire.com/file/i30uf1hssfqii4f/strace-of-kolourpaint.txt/file

      @JonB , I thought that me using Qt software kind of implies that I'm running Linux (Arch, if it matters what kind of linux), so I didn't think it was necessary for me to say that. Qt is a Linux-only thing.

      @J-Hilk, I do the updates manually, nothing is automated. The nvidia driver has been the same for about 6 months (525.89.02) and will continue to be so until nvidia finally fix their hundreds of problems. The kernel is LTS, if it matters. Whenever there are qt updates, I let it update everything there is to update.

      J Offline
      J Offline
      JonB
      wrote on 10 Oct 2023, 12:47 last edited by
      #9

      @Valso said in Qt (maybe 5) became sluggish recently. Any ideas why?:

      Qt is a Linux-only thing.

      Really?! ;-)

      V 1 Reply Last reply 10 Oct 2023, 12:52
      1
      • J JonB
        10 Oct 2023, 12:47

        @Valso said in Qt (maybe 5) became sluggish recently. Any ideas why?:

        Qt is a Linux-only thing.

        Really?! ;-)

        V Offline
        V Offline
        Valso
        wrote on 10 Oct 2023, 12:52 last edited by
        #10

        @JonB If it's not a linux-only thing, I couldn't know that. The Windows 10 you see above in the disk listing exists there only for 2 games that won't run properly in linux, it has only audio and video drivers and nothing else. For the past 8 years my day-to-day & gaming OS was Linux, so I couldn't know what qt is available for or not.

        J P 2 Replies Last reply 10 Oct 2023, 13:00
        0
        • V Valso
          10 Oct 2023, 12:52

          @JonB If it's not a linux-only thing, I couldn't know that. The Windows 10 you see above in the disk listing exists there only for 2 games that won't run properly in linux, it has only audio and video drivers and nothing else. For the past 8 years my day-to-day & gaming OS was Linux, so I couldn't know what qt is available for or not.

          J Offline
          J Offline
          JonB
          wrote on 10 Oct 2023, 13:00 last edited by JonB 10 Oct 2023, 13:02
          #11

          @Valso
          OK, but just so you know, one of the principal features of Qt is cross-platform: Linux, Windows, MacOS, Android.... You can see the posts on this forum keep discussing each of these platforms.

          1 Reply Last reply
          1
          • V Valso
            10 Oct 2023, 12:52

            @JonB If it's not a linux-only thing, I couldn't know that. The Windows 10 you see above in the disk listing exists there only for 2 games that won't run properly in linux, it has only audio and video drivers and nothing else. For the past 8 years my day-to-day & gaming OS was Linux, so I couldn't know what qt is available for or not.

            P Offline
            P Offline
            Pl45m4
            wrote on 10 Oct 2023, 13:08 last edited by
            #12

            @Valso said in Qt (maybe 5) became sluggish recently. Any ideas why?:

            For the past 8 years my day-to-day & gaming OS was Linux, so I couldn't know what qt is available for or not.

            So when drawing with MS Paint every day, you would assume Microsoft Windows is a bloated, buggy and poorly designed sketching tool? :)
            Well, haha, some might say that the truth is not far off, but you'll get the point :))


            If debugging is the process of removing software bugs, then programming must be the process of putting them in.

            ~E. W. Dijkstra

            V 1 Reply Last reply 10 Oct 2023, 13:22
            0
            • P Pl45m4
              10 Oct 2023, 13:08

              @Valso said in Qt (maybe 5) became sluggish recently. Any ideas why?:

              For the past 8 years my day-to-day & gaming OS was Linux, so I couldn't know what qt is available for or not.

              So when drawing with MS Paint every day, you would assume Microsoft Windows is a bloated, buggy and poorly designed sketching tool? :)
              Well, haha, some might say that the truth is not far off, but you'll get the point :))

              V Offline
              V Offline
              Valso
              wrote on 10 Oct 2023, 13:22 last edited by
              #13

              @Pl45m4 "you would assume Microsoft Windows is a bloated, buggy and poorly designed sketching tool?"
              It IS, I don't have to assume anything. I used to be a Windows sheep for 20 or so years - since 1996 until 2015. The proof that the whole Windows is bloated?

              Arch Linux installation with ALL the programs I need and use every day (they're about 20 or 25 programs) - 24.1 GB.
              Windows installation with just audio & video drivers and nothing else - 31.1 GB.

              If that's not bloated, IDK what it is. :D

              But that's not what I came here to discuss, so let's leave it at that.

              I'm more interested to know which qt5 and qt6 packages control these dialog windows that get sluggish. Maybe if I downgrade the packages, the dialogs will return to normal performance.

              P J 2 Replies Last reply 10 Oct 2023, 13:33
              0
              • V Valso
                10 Oct 2023, 13:22

                @Pl45m4 "you would assume Microsoft Windows is a bloated, buggy and poorly designed sketching tool?"
                It IS, I don't have to assume anything. I used to be a Windows sheep for 20 or so years - since 1996 until 2015. The proof that the whole Windows is bloated?

                Arch Linux installation with ALL the programs I need and use every day (they're about 20 or 25 programs) - 24.1 GB.
                Windows installation with just audio & video drivers and nothing else - 31.1 GB.

                If that's not bloated, IDK what it is. :D

                But that's not what I came here to discuss, so let's leave it at that.

                I'm more interested to know which qt5 and qt6 packages control these dialog windows that get sluggish. Maybe if I downgrade the packages, the dialogs will return to normal performance.

                P Offline
                P Offline
                Pl45m4
                wrote on 10 Oct 2023, 13:33 last edited by
                #14

                @Valso said in Qt (maybe 5) became sluggish recently. Any ideas why?:

                I'm more interested to know which qt5 and qt6 packages control these dialog windows that get sluggish. Maybe if I downgrade the packages, the dialogs will return to normal performance.

                There is no such "package". As @J-Hilk said here:

                If not done explicitly differently by the programmer these are native Dialogs & API calls.

                the OS is triggered to show an "open file dialog", like the one you would see when browsing for a file in Windows Explorer


                If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                ~E. W. Dijkstra

                1 Reply Last reply
                0
                • V Valso
                  10 Oct 2023, 13:22

                  @Pl45m4 "you would assume Microsoft Windows is a bloated, buggy and poorly designed sketching tool?"
                  It IS, I don't have to assume anything. I used to be a Windows sheep for 20 or so years - since 1996 until 2015. The proof that the whole Windows is bloated?

                  Arch Linux installation with ALL the programs I need and use every day (they're about 20 or 25 programs) - 24.1 GB.
                  Windows installation with just audio & video drivers and nothing else - 31.1 GB.

                  If that's not bloated, IDK what it is. :D

                  But that's not what I came here to discuss, so let's leave it at that.

                  I'm more interested to know which qt5 and qt6 packages control these dialog windows that get sluggish. Maybe if I downgrade the packages, the dialogs will return to normal performance.

                  J Offline
                  J Offline
                  JonB
                  wrote on 10 Oct 2023, 13:36 last edited by
                  #15

                  @Valso
                  There are both "native" and "Qt" versions of "File Dialogs". Which one is used is determined by you in code (where available, some functionality uses only one or the other). You might start by identifying/discovering which one your code uses.

                  If it is the "native" one then whatever problems likely lie there, not in Qt code.

                  V 1 Reply Last reply 10 Oct 2023, 13:43
                  1
                  • J JonB
                    10 Oct 2023, 13:36

                    @Valso
                    There are both "native" and "Qt" versions of "File Dialogs". Which one is used is determined by you in code (where available, some functionality uses only one or the other). You might start by identifying/discovering which one your code uses.

                    If it is the "native" one then whatever problems likely lie there, not in Qt code.

                    V Offline
                    V Offline
                    Valso
                    wrote on 10 Oct 2023, 13:43 last edited by Valso 10 Oct 2023, 13:45
                    #16

                    @JonB They all look exactly the same way (like on the video in the first post), no matter the program, that's why I thought it was a single package that controls/renders them and also that's why I thought the cause was qt. Qt is the only thing in common these programs have. It can't be a coincidence that the dialog window looks the same way for all qt programs and is equally sluggish for all of them: kolourpaint, mkvtoolnix-gui, audacious, qbittorrent, smplayer, simplescreenrecorder, etc.

                    I wish there were a way to force "native" on qt programs, cuz the GTK dialogs work just fine.

                    Edit: I just remembered about qt5ct and qt6ct. Maybe there IS a way, after all! :D

                    P 1 Reply Last reply 10 Oct 2023, 13:46
                    0
                    • V Valso
                      10 Oct 2023, 13:43

                      @JonB They all look exactly the same way (like on the video in the first post), no matter the program, that's why I thought it was a single package that controls/renders them and also that's why I thought the cause was qt. Qt is the only thing in common these programs have. It can't be a coincidence that the dialog window looks the same way for all qt programs and is equally sluggish for all of them: kolourpaint, mkvtoolnix-gui, audacious, qbittorrent, smplayer, simplescreenrecorder, etc.

                      I wish there were a way to force "native" on qt programs, cuz the GTK dialogs work just fine.

                      Edit: I just remembered about qt5ct and qt6ct. Maybe there IS a way, after all! :D

                      P Offline
                      P Offline
                      Pl45m4
                      wrote on 10 Oct 2023, 13:46 last edited by Pl45m4 10 Oct 2023, 13:47
                      #17

                      @Valso said in Qt (maybe 5) became sluggish recently. Any ideas why?:

                      I wish there were a way to force "native" on qt programs

                      There IS :)

                      • https://doc.qt.io/qt-6/qfiledialog.html#Option-enum

                      QFileDialog::DontUseNativeDialog

                      Don't use the native file dialog. By default, the native file dialog is used unless you use a subclass of QFileDialog that contains the Q_OBJECT macro, or the platform does not have a native dialog of the type that you require.

                      You have to force not to use the OS native file dialogs


                      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                      ~E. W. Dijkstra

                      V 1 Reply Last reply 10 Oct 2023, 13:59
                      0
                      • P Pl45m4
                        10 Oct 2023, 13:46

                        @Valso said in Qt (maybe 5) became sluggish recently. Any ideas why?:

                        I wish there were a way to force "native" on qt programs

                        There IS :)

                        • https://doc.qt.io/qt-6/qfiledialog.html#Option-enum

                        QFileDialog::DontUseNativeDialog

                        Don't use the native file dialog. By default, the native file dialog is used unless you use a subclass of QFileDialog that contains the Q_OBJECT macro, or the platform does not have a native dialog of the type that you require.

                        You have to force not to use the OS native file dialogs

                        V Offline
                        V Offline
                        Valso
                        wrote on 10 Oct 2023, 13:59 last edited by
                        #18

                        @Pl45m4
                        "You have to force not to use the OS native file dialogs"

                        Actually, that's exactly what I did. IDK about Windows, but here on Arch Linux there's no such a thing as "native file dialogs". The dialogs type depends entirely on the desktop environment and since I'm using Cinnamon (a fork of GNOME) with a few programs from KDE Plasma, the "native dialogs" are those of GTK. The few programs from KDE Plasma use qt (KDE Plasma runs on qt as well) but with the help of the small programs named qt5ct and qt6ct, you can force them to use the GTK file dialogs. I simply had forgotten about their existence. Now I installed these two and forced them to use the GTK file dialogs, so no more waiting for an eternity for the dialog to load. :D

                        S 1 Reply Last reply 11 Oct 2023, 07:29
                        2
                        • V Valso
                          10 Oct 2023, 13:59

                          @Pl45m4
                          "You have to force not to use the OS native file dialogs"

                          Actually, that's exactly what I did. IDK about Windows, but here on Arch Linux there's no such a thing as "native file dialogs". The dialogs type depends entirely on the desktop environment and since I'm using Cinnamon (a fork of GNOME) with a few programs from KDE Plasma, the "native dialogs" are those of GTK. The few programs from KDE Plasma use qt (KDE Plasma runs on qt as well) but with the help of the small programs named qt5ct and qt6ct, you can force them to use the GTK file dialogs. I simply had forgotten about their existence. Now I installed these two and forced them to use the GTK file dialogs, so no more waiting for an eternity for the dialog to load. :D

                          S Offline
                          S Offline
                          SimonSchroeder
                          wrote on 11 Oct 2023, 07:29 last edited by
                          #19

                          @Valso said in Qt (maybe 5) became sluggish recently. Any ideas why?:

                          Now I installed these two and forced them to use the GTK file dialogs, so no more waiting for an eternity for the dialog to load.

                          Then it sounds like a problem of KDE and not Qt. Yes, KDE is closely related to Qt, but it also extends Qt. Most likely it provides its own "native" file dialog for Qt. There is a difference between plain Qt programs and KDE programs. And you were (almost) right initially that KDE would imply Linux as OS, but Qt actually does not (as mentioned before). (Just for completeness sake: the official KDE programs are also available on Windows. I even have Kate installed.)

                          1 Reply Last reply
                          0

                          17/19

                          10 Oct 2023, 13:46

                          • Login

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