View Full Version : QMaemo5InformationBox Text Color
tmsha
02-03-2010, 03:23 AM
Hi, When I use this code:
QMaemo5InformationBox::information(this, "This is a Maemo5<b>banner<b>",QMaemo5InformationBox::NoTimeout);
with my application the color of the text is white (this is not good on yellow background), I have tried to change the parent widget WindowText palette to black but it does not seem to work.. (The default color for my widget is white text color..)
Any ideas ?
danielwilms
02-03-2010, 08:53 AM
Hi,
it might be that it is because you are using another theme? Or it inherits the font-color from the parent. An easy solution would be to call the banner like:
QMaemo5InformationBox::information(this, "<font color='black'>This is a Maemo5<b>banner<b></font>",QMaemo5InformationBox::DefaultTimeout);
This should do the trick.
Daniel
tmsha
02-03-2010, 08:57 AM
Thank you Daniel, I just figured this out myself a few minutes ago and was about to paste the solution.
Now.. there is a new problem i discovered: After a message is shown to the screen and i click on the background to remove it, i cannot access the application menu anymore when its shown i normal view mode (when in fullscreen the menu works). And the rotation(landscape/portrait) stops working too. I need to minimize and maximize the window to make the menu and rotation work again. Any ideas on this ?
danielwilms
02-03-2010, 09:39 AM
Hi,
sounds like a bug to me. But I will try it and come back to you. Latest tomorrow.
Daniel
sjaensch
02-03-2010, 02:23 PM
I noticed this bug myself, but forgot to report it because I was in the middle of something. Done now, you can track it here: http://bugreports.qt.nokia.com/browse/QTBUG-7887
tmsha
02-03-2010, 02:50 PM
Thanks for reporting it, you should add that its also the case with rotation aware widgets.. They wont get rotation information after showing informationbox.
sjaensch
02-03-2010, 03:24 PM
I'll do that, but you can also leave a comment there yourself. ;)
tmsha
02-04-2010, 07:24 AM
Somehow the rotation events works now. I guess it was not related..
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.