Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator dark themes unreadable
Forum Updated to NodeBB v4.3 + New Features

QtCreator dark themes unreadable

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
12 Posts 8 Posters 5.0k 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.
  • A abstracted8

    I am having an issue with the dark themes in QtCreator not displaying correctly. The background in some panels are white and the text light grey. The menus are the same way. The light themes however seem to behave correctly.

    Screenshots of the two can be seen here.

    System is Arch linux under Gnome.

    Thanks!

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

    @abstracted8

    • which Creator vetsion is that?
    • how did you install it?

    Qt has to stay free or it will die.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      abstracted8
      wrote on last edited by
      #3

      This is QtCreator 4.9.1 on Qt 5.12.4
      Was installed using the system package manager.

      I have tried deleting all configuration files/folders I could find in ~/.config as well as reinstalling QtCreator.

      aha_1980A 1 Reply Last reply
      0
      • A abstracted8

        This is QtCreator 4.9.1 on Qt 5.12.4
        Was installed using the system package manager.

        I have tried deleting all configuration files/folders I could find in ~/.config as well as reinstalling QtCreator.

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

        @abstracted8 can you try the official Creator from download.qt.io ? (you can install in your home dir and uninstall later). just to see if that is a generic or distro problem.

        Qt has to stay free or it will die.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          abstracted8
          wrote on last edited by
          #5

          Hmm, the official download you suggested works correctly. I may have to just use that, as I am unsure how to correct the disto version.

          JKSHJ 1 Reply Last reply
          1
          • A abstracted8

            Hmm, the official download you suggested works correctly. I may have to just use that, as I am unsure how to correct the disto version.

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

            @abstracted8 said in QtCreator dark themes unreadable:

            I am unsure how to correct the disto version.

            I suggest you report this to your distro's maintainers. They could know what to do, and fix it for all users of Arch Linux.

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

            1 Reply Last reply
            2
            • I Offline
              I Offline
              ind3r
              wrote on last edited by
              #7

              While this topic is a few months old, but I hope someone else searching for a solution to this issue might find this reply helpful.

              The issue seems to occur because the Qt style plugin is now separated from the qt5-base package in Arch Linux (and its derivatives such as Manjaro etc.) . The details can be found in the Arch wiki page for Qt and GTK style compatibility: https://wiki.archlinux.org/index.php/Uniform_look_for_Qt_and_GTK_applications#QGtkStyle

              To fix the issue:

              1. Make sure that the qt5-styleplugins package is installed (sudo pacman -S qt5-styleplugins)
              2. Set the environment variable QT_QPA_PLATFORMTHEME=gtk2 before executing QtCreator (preferably export this from the ~/.bashrc file).

              PS: Downloading the official QtCreator might not be possible always, such as when using Arch Linux on a ARM device.

              Q 1 Reply Last reply
              5
              • april_heardA Offline
                april_heardA Offline
                april_heard
                wrote on last edited by april_heard
                #8

                @ind3r said in QtCreator dark themes unreadable:

                To fix the issue:
                Make sure that the qt5-styleplugins package is installed (sudo pacman -S qt5-styleplugins)
                Set the environment variable QT_QPA_PLATFORMTHEME=gtk2 before executing QtCreator (preferably export this from the ~/.bashrc file).

                Thanks for the solution. I am having this issue on Arch Linux as well. However, I'm running KDE. Before I follow the above steps, can anyone say how they differ in KDE? Do I still need to set the environment variable QT_QPA_PLATFORMTHEME=gtk2?

                Qt Creator is not a GTK app after all...

                Qt Creator 4.11.0-4
                Based on Qt 5.14.0 (GCC 9.2.0, 64 bit)
                plasmashell 5.17.4
                Linux kernel 5.4.8-arch1-1
                KDE Breeze Dark theme

                S 1 Reply Last reply
                0
                • april_heardA april_heard

                  @ind3r said in QtCreator dark themes unreadable:

                  To fix the issue:
                  Make sure that the qt5-styleplugins package is installed (sudo pacman -S qt5-styleplugins)
                  Set the environment variable QT_QPA_PLATFORMTHEME=gtk2 before executing QtCreator (preferably export this from the ~/.bashrc file).

                  Thanks for the solution. I am having this issue on Arch Linux as well. However, I'm running KDE. Before I follow the above steps, can anyone say how they differ in KDE? Do I still need to set the environment variable QT_QPA_PLATFORMTHEME=gtk2?

                  Qt Creator is not a GTK app after all...

                  Qt Creator 4.11.0-4
                  Based on Qt 5.14.0 (GCC 9.2.0, 64 bit)
                  plasmashell 5.17.4
                  Linux kernel 5.4.8-arch1-1
                  KDE Breeze Dark theme

                  S Offline
                  S Offline
                  slawtul
                  wrote on last edited by
                  #9

                  Hi
                  the same problem on Fedora 31 KDE. I switched from default to Breeze Dark theme.
                  I installed QtCreator and all menus were unreadable.

                  However I changed QtCreator theme from Flat to Dark and I can see menu items now.

                  Screenshot_20200115_104841.png

                  april_heardA 1 Reply Last reply
                  2
                  • S slawtul

                    Hi
                    the same problem on Fedora 31 KDE. I switched from default to Breeze Dark theme.
                    I installed QtCreator and all menus were unreadable.

                    However I changed QtCreator theme from Flat to Dark and I can see menu items now.

                    Screenshot_20200115_104841.png

                    april_heardA Offline
                    april_heardA Offline
                    april_heard
                    wrote on last edited by
                    #10

                    @slawtul said in QtCreator dark themes unreadable:

                    Hi
                    the same problem on Fedora 31 KDE. I switched from default to Breeze Dark theme.
                    I installed QtCreator and all menus were unreadable.

                    However I changed QtCreator theme from Flat to Dark and I can see menu items now.

                    Thank you. I'm not sure how I missed that setting. I appreciate your screenshot.

                    I also found this theme I may try:

                    Dracula — A dark theme for Qt Creator and 84+ apps https://draculatheme.com/qtcreator/

                    dracula/qtcreator: A dark theme for Qt Creator https://github.com/dracula/qtcreator

                    1 Reply Last reply
                    0
                    • I ind3r

                      While this topic is a few months old, but I hope someone else searching for a solution to this issue might find this reply helpful.

                      The issue seems to occur because the Qt style plugin is now separated from the qt5-base package in Arch Linux (and its derivatives such as Manjaro etc.) . The details can be found in the Arch wiki page for Qt and GTK style compatibility: https://wiki.archlinux.org/index.php/Uniform_look_for_Qt_and_GTK_applications#QGtkStyle

                      To fix the issue:

                      1. Make sure that the qt5-styleplugins package is installed (sudo pacman -S qt5-styleplugins)
                      2. Set the environment variable QT_QPA_PLATFORMTHEME=gtk2 before executing QtCreator (preferably export this from the ~/.bashrc file).

                      PS: Downloading the official QtCreator might not be possible always, such as when using Arch Linux on a ARM device.

                      Q Offline
                      Q Offline
                      qtenvy
                      wrote on last edited by
                      #11

                      @ind3r I had this problem on Fedora 32. Your solution worked perfectly.

                      1 Reply Last reply
                      0
                      • O Offline
                        O Offline
                        Olivia232425
                        Banned
                        wrote on last edited by
                        #12
                        This post is deleted!
                        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