QGtkStyle gets incorrect colors for tooltips on unity2d

Bug #877236 reported by Alexander Kabakow
52
This bug affects 10 people
Affects Status Importance Assigned to Milestone
qt4-x11 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I'am using kate for text editing and unity2d as de
So i've set qt and kde apps to use gtk style long time ago

After upgrade to 11.10 there are fail with tooltips shown using QWhatsThis class
My system tooltip background color is black and tooltip textcolor is white

But libqt4-gui (where QWhatsThis class exsist)
show QWhatsThis as white letters on light yellow background
I can't see anything on such light background

I've though that kate bug and debugged into it
That colors comes from libqt4-gui
May be its gtk bug but i can't debug it

Qt uses depreceted gtk calls to get that colors inside of QGtkStyle class

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: libqt4-gui 4:4.7.4-0ubuntu8
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic i686
ApportVersion: 1.23-0ubuntu3
Architecture: i386
Date: Tue Oct 18 12:42:34 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
SourcePackage: qt4-x11
UpgradeStatus: Upgraded to oneiric on 2011-10-16 (1 days ago)

Revision history for this message
Alexander Kabakow (alexzak) wrote :
Revision history for this message
Alfredo Soro (alfredosoro) wrote :

I also have this problem with Ubuntu 11.04. with applications like Google Earth.

I solved the problem with tooltips running qtconfig command and selecting "Cleanlooks" at "GUI Style" section in "Appearance" tab.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qt4-x11 (Ubuntu):
status: New → Confirmed
Revision history for this message
Andrew Comminos (andrewcomminos) wrote :

Confirming this is still an issue in Ubuntu 12.10 using the Mumble VOIP client. QWhatsThis dialogs are unreadable with the Ambience theme.

Revision history for this message
karl (karl-sebastian-liebich) wrote :

Confirming for 13.04

Revision history for this message
karl (karl-sebastian-liebich) wrote :

seems to be a bug in qtconfig..

Revision history for this message
Andreas Ringlstetter (ext3h) wrote :

Still an issue in 13.10 (and also in other distributions, including Arch)

The bug is somewhere in the config loader of Qt, every other color except for the tooltip background color is read from the Trolltech.conf as expected. Tooltip background color is hardcoded to #ffffdc and the settings in th Trolltech.conf are not respected at all.

This affects Qt3 and Qt4 applications.

qtconfig will actually set a tooltip color, apply it to all running Qt applications and write it correctly to Trolltech.conf, but will falsely read the constant value back on the next startup.

Revision history for this message
aamadis (aamadis) wrote :

Still an issue in 14.04, but the workaround I use is to set the color in the Trolltech.conf (home/.config/Trolltech.conf) instead of with the qtconfig tool. At the end of the file, palette colors are defined. I edited the last two colors of each palette (active/inactive/disabled) and was able to change my tooltip background and foreground colors to match my theme.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.