Bug 309651 - QMenu uses black text on black background
Summary: QMenu uses black text on black background
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Necessitas
Classification: Unmaintained
Component: Android Qt4 (other bugs)
Version First Reported In: beta1
Platform: Android Android 4.x
: NOR normal
Target Milestone: Unspecified
Assignee: BogDan Vatra
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-06 13:48 UTC by Martin Koller
Modified: 2016-11-06 09:10 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Koller 2012-11-06 13:48:15 UTC
I'm using a QMenu populated with some QActions and when using menu->popup() I can not read anything as there is black text on black background.

I tested this on an Asus Transformer Pad (Android 4.1.1) and on a HTC sensation (Android 4.0.3)

I think there is a general problem with the QPalette settings as I had nother problem when using a QListWidget where I had white color on white background.

Reproducible: Always
Comment 1 Martin Koller 2012-11-06 14:09:15 UTC
It seems that the drawing uses the wrong colors, because when I explicitely change the palette popup->backgroundRole() color to gray and the WindowText color to white, I still do not see the text - only the background color changes to gray.

e.g.:
  QPalette pal = popup->palette();
  pal.setColor(popup->backgroundRole(), Qt::lightGray);
  pal.setColor(popup->foregroundRole(), Qt::black);
  popup->setPalette(pal);