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

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
19 Posts 6 Posters 1.1k 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.
  • JonBJ JonB

    @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 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.

    JonBJ Pl45m4P 2 Replies Last reply
    0
    • V Valso

      @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.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #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

        @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.

        Pl45m4P Offline
        Pl45m4P Offline
        Pl45m4
        wrote on 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
        0
        • Pl45m4P Pl45m4

          @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 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.

          Pl45m4P JonBJ 2 Replies Last reply
          0
          • V Valso

            @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.

            Pl45m4P Offline
            Pl45m4P Offline
            Pl45m4
            wrote on 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

              @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.

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on 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
              1
              • JonBJ JonB

                @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 last edited by Valso
                #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

                Pl45m4P 1 Reply Last reply
                0
                • V Valso

                  @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

                  Pl45m4P Offline
                  Pl45m4P Offline
                  Pl45m4
                  wrote on last edited by Pl45m4
                  #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
                  0
                  • Pl45m4P Pl45m4

                    @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 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
                    2
                    • V Valso

                      @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 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

                      • Login

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