Qt4 not inheriting GTK theme + desktop icons

Forum Forums Official Releases antiX-21/22 “Grup Yorum” Qt4 not inheriting GTK theme + desktop icons

  • This topic has 11 replies, 8 voices, and was last updated Sep 3-3:05 pm by iznit.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #87933
    Member
    tizianomattei

      Hi, sorry to bother you all again, but I have a couple more issues with my Antix21 install, two minor ones this time.

      1) I can’t set Qt4 apps to follow the GTK theme. I was successful with Qt5 apps, using qt5ct and setting the requested environment variable.
      The file ~/.config/Trolltech.conf seems alright, here is its content:

      ...
      [Qt]
      style=GTK+
      ...

      2) I must have messed up with some config file, but I can’t remember which… now my desktop shows the icons in my home folder instead of the ones in my Desktop folder.
      It may be related to the fact that I deleted my Desktop folder altogether, but I’ve already tried recreating it (both with its italian name “Scrivania” and the english one), rebooting, and nothing happens.

      #87935
      Member
      manyroads
        Helpful
        Up
        0
        ::

        See: https://wiki.gentoo.org/wiki/GTK_themes_in_Qt_applications

        Pax vobiscum,
        Mark Rabideau - http://many-roads.com
        "For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken
        dwm & i3wm ~Reg. Linux User #449130
        20 Jan 2021 ~ "End of an Error"

        #87941
        Member
        techore
          Helpful
          Up
          0
          ::

          I, also, found https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications useful, but I have, yet, to find a 100% solution. Amazing how much time you can spend trying to get a uniform look between gtk and qt and their differing versions.

          At this time, I am exploring using kvantum but unclear if that supports both qt4 and qt5.

          #87946
          Moderator
          Brian Masinick
            Helpful
            Up
            0
            ::

            Getting a truly uniform user interface is quite a challenge, especially if you attempt to support multiple toolkit interfaces.

            Not technically impossible; my ‘gut reaction ‘ is that to be truly uniform you may have to invest or invent an intermediate interface that either provides or compensates for the many tools and toolkit interface differences and peculiarities.

            Not a trivial thing to solve at all!

            --
            Brian Masinick

            #87947
            Member
            marcelocripe
              Helpful
              Up
              0
              ::

              Hello tizianomatte.

              If you’re using a desktop that doesn’t have Rox or zzz at the beginning of its name, that’s probably why you can’t see shortcut icons or .desktop files.

              To access other antiX workspaces, click on Menu, Desktop, Other Desktops and click on the workspace name, instantly the workspace will be loaded.

              marcelocripe
              (Original text in Brazilian Portuguese language)

              – – – – –

              Olá tizianomattei.

              Se você estiver utilizando uma área de trabalho que não possua Rox ou zzz no início do seu nome, certamente seja este o motivo de você não conseguir ver os ícones de atalho ou arquivos .desktop.

              Para acessar as outras áreas de trabalho do antiX, clique no Menu, Área de Trabalho, Alternar Entre as Áreas de Trabalho e clique sobre o nome da área de trabalho, instantaneamente a área de trabalho será carregada.

              marcelocripe
              (Texto original em idioma Português do Brasil)

              #87952
              Member
              tizianomattei
                Helpful
                Up
                0
                ::

                Hi all, and thanks for the time you all spent to answer.

                Oddly enough, no one seems to get any of the points, which makes me think I’ve been unclear.

                I’m sorry for that and I’ll try to be more specific now.

                1) I’ve never had any problem to have a consistent look between at least the two main toolkits. Qt5 can be set to inherit the active GTK theme via qt5ct and, at least until Antix-19, Qt4 could simply be set via the file Trolltech.conf, which I know should read exactly what it reads; however, it doesn’t seem to work now, and I wonder why… maybe some missing libraries, that were present in Antix-19?…

                2) Marcelocripe, the problem is not that I don’t see the desktop icons. On the contrary, I now see all the folders in my home directory (Documents, Images and so on…) on my desktop. Normally, the content of ~/Desktop should appear, instead. And, specifically, I usually keep this folder empty, so that I have no desktop icons (I don’t want icons on my desktop). I’m currently using the zzz-jwm session, although customized by me. I’m now looking for a way to have all those unwanted icons disappear, without switching to a ‘minimal’ session. Any ideas?

                #87953
                Forum Admin
                dolphin_oracle
                  Helpful
                  Up
                  0
                  ::

                  what qt4 app are you using?

                  some apps do not accept a theme. there are a few third party apps I can think of. XnView is one. sometimes Qt apps let you select a theme internally, or at least a theme plugin, like ksnip, and sometimes they default to something other than the system.

                  #87955
                  Member
                  iznit
                    Helpful
                    Up
                    0
                    ::

                    antix21 is based on debian bullseye. Debian dropped qt4 support prior to releasing bulleye so, yeah, “some quite a few missing libraries”.

                    Wait, so are you actually running qt4 gui programs on antix21? via wine??? flatpak??? appimage???

                    #87964
                    Member
                    tizianomattei
                      Helpful
                      Up
                      0
                      ::

                      Wait… so you are saying those are NOT qt4 apps?! O.o
                      I’m talking about vlc and the nextcloud client, that you see in the screenshot.
                      Everything else inherits the arc-dark theme, but they refuse to.
                      In antix-19, they inherited the theme without problem…
                      If they are qt5 apps, then what’s happening here?

                      EDIT: the same happens with qpdfview…

                      • This reply was modified 8 months ago by tizianomattei.
                      #87969
                      Member
                      blur13
                        Helpful
                        Up
                        0
                        ::

                        https://www.antixforum.com/forums/topic/dark-theme-not-working-for-some-apps/

                        I had a similar problem, maybe the above topic will help you.

                        #87971
                        Member
                        tizianomattei
                          Helpful
                          Up
                          0
                          ::

                          Thank you blur13!

                          Sorry I didn’t find your post before.

                          Before you wrote, I had already verified my /etc/environment and it looked alright.
                          Then I added the same line to ~/.profile, but with no result.
                          Then I found a workaround by adding the line
                          export QT_QPA_PLATFORMTHEME=qt5ct
                          to my ~/.desktop-session/desktop-session.conf file, and that worked.

                          Now, reading about your awkward problem with the line break, I’ve tried opening /etc/environment again, deleting the trailing line break and manually inserting it again.
                          I commented the line I added in desktop-session.conf, rebooted and… it works!
                          Thank you so much.
                          I think this should be solved for every user, by rewriting the /etc/environment file and updating the package…

                          Now, I’m still stuck with my second problem (desktop icons)…

                          • This reply was modified 8 months ago by tizianomattei.
                          #87989
                          Member
                          iznit
                            Helpful
                            Up
                            0
                            ::

                            Wait… so you are saying those are NOT qt4 apps?! O.o
                            I’m talking about vlc and the nextcloud client, that you see in the screenshot.

                            Yes, the debian package for vlc [[[actually the dependency is declared in package “vlc-plugin-qt”]]] uses Qt5. The “nextcloud-desktop” packaged for debian bullseye also uses Qt5.

                          Viewing 12 posts - 1 through 12 (of 12 total)
                          • You must be logged in to reply to this topic.