LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-17-2019, 10:45 AM   #1
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Rep: Reputation: 51
Unhappy Why Qt5 apps did not change their colors, after i set this configuration?


Hello,

i user Debian 9, Mate Desktop and a dark theme. Qt4 and Qt5 apps are horrible because they look like aliens in my desktop.

But i found this page: https://www.linuxuprising.com/2018/0...-style-in.html

So now, i have this in my ~/.bashrc
Code:
# Set Qt5 applications to use the Gtk+ 2 style by adding
export QT_QPA_PLATFORMTHEME=gtk2
Great. It seemed the solution i just needed. I did all of it, and after it did not work, i even restarted the computer. No change.

Why virtualbox, wireshark and qtikz are still white, while my desktop things are *all* gray or dark gray? Can you help me solve this?
 
Old 11-20-2019, 01:21 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
https://wiki.archlinux.org/index.php...K_Applications
Messy article, but after some troubleshooting I'm sure you can find the solution in there.
Probably most relevant excerpt:
Quote:
For Qt4, it can be enabled with Qt Configuration (qtconfig-qt4), choose GTK under Appearance > GUI Style.

...

For Qt 5, it can be enabled by installing qt5-styleplugins and setting the following environment variable: QT_QPA_PLATFORMTHEME=gtk2

For full uniformity, make sure that the configured GTK theme supports both GTK 2 and GTK 3.
 
1 members found this post helpful.
Old 11-24-2019, 09:06 PM   #3
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Original Poster
Rep: Reputation: 51
Let's go one part at a time. This one is for Qt5

I found and installed the package qt4-qtconfig, which installs the command qtconfig-qt4 (what horrible lack of standard in naming things... 🙄). With it, i got this screenshot. I needed to change NOTHING in it, besides the "Select GUI Style" dropdown menu to "GTK+" { it was "Desktop Settings (Default)" }. The colors of most things seems right, except the preview of the window titles.

Why is this light blue bg with white letters?
Look: http://imgbox.com/KW0IhbFB

But after doing that, i wanted to find a Qt4 software to see it worked or not. Something small and portable (one file i can download and run, like Telegram is today, for example), preferably, since i am not needing anything new to use. The Qt things i have installed seems to be Qt5: (...) forget this paragraph. The first program i thought was Qt5, due a problem it has with colors, is Qt4: Bazaar Explorer. It already used fairly good colors. But it uses chosen colors for only parts of what is shown. For example: in an open project, it may have found a changed file; it will choose pure blue (#0000FF) in the text link text that will open the diff window for us, no matter what background color is being used. In my case, a pure blue is not that good to be read in it, but there is no way to change this - except changing something in the source code, i assume.

But Qt5 applications are still white! I read that page, ondoho, but what it says i already did. Can you, or anyone else reading this, help me solving this? The Qt5 software i am trying to see the fixed are:

1. DB Browser for SQLite

2. QTikz (to help doing some LaTeX drawings)

3. Oracle VM VirtualBox (virtual machines manager)

4. Wireshark (network traffic analyser)

5. VLC (? there is no mention of Qt in "Help > About" of vlc, but it is white like the other software in this list; can you confirm to me which Qt v3.0.8 uses?)

6. (?) Iced Tea Web Control Panel {just because it is white, but i have no clue if it is made using qt, the version is: "icedtea-web: (1.6.2-3.1), 1/14/17 5:27 PM" }

7. (?) Open JDK Java 8 Policy Tool (just because it is white, similar to the first five items of this list; there is nothing to show a version in the window i open with the Mate system menu {System > Preferences > Others > "Open JDK Java 8 Policy Tool"}

So, any ideas?

Last edited by dedec0; 11-24-2019 at 09:07 PM.
 
Old 09-14-2022, 02:02 PM   #4
ludist
Member
 
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 172

Rep: Reputation: 21
I have the same problem with Slackware-15.0

Semi-Solution: I installed kvantum. In environment I issued
Code:
export QT_STYLE_OVERRIDE=kvantum
. You can added it permanently on system-wide profile, or in your user profile.

Now okular, sqlitebrowser, wireshark, frescobaldi are following the kvantum theme, but virtual-box not.

Last edited by ludist; 09-14-2022 at 02:21 PM. Reason: frescobaldi, okular
 
  


Reply

Tags
qt, qt5



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Qt5.11.3 Slackware64-current package: Strange colors Johncc330 Slackware 5 02-03-2019 09:10 PM
LXer: Get Qt5 Apps To Use Native Gtk+ Style In Ubuntu 18.04 LTS LXer Syndicated Linux News 0 05-11-2018 12:47 AM
[SOLVED] Most icons fail to display in KDE Qt5 apps in Openbox cowlitzron Linux - Software 4 04-23-2018 01:57 AM
Rename pdf files after their directory name and acoording to their total number IlIl7 Linux - Newbie 3 07-06-2012 04:09 PM
How to change shell to have nice colors and look cool? Penguin likes cool colors! newtovanilla Linux - Newbie 3 11-28-2008 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration