View Full Version : What is the default color of Ubuntu text?
LeonTastyDev
January 8th, 2011, 12:50 PM
I am setting a label with this...
ui->imagesLabel_2->setStyleSheet("* { color: white }");
But if i set it to black it will be different from the other text's default ( which is black-grey )..
So what is the default color of ubuntu text?
I am using Qt Creator....
Zugzwang
January 9th, 2011, 06:17 PM
Browsing the documentation, it seems as if you can do what you want by getting the QPalette object for your application (returned by QApplication:: palette()) and reading the text color from it.
See: http://doc.qt.nokia.com/4.6/qpalette.html#details
LeonTastyDev
January 9th, 2011, 07:19 PM
Browsing the documentation, it seems as if you can do what you want by getting the QPalette object for your application (returned by QApplication:: palette()) and reading the text color from it.
See: http://doc.qt.nokia.com/4.6/qpalette.html#details
I basically had found a solution.. it is something like setStyleSheet(stylesheet);
Something like that.. i do not remember exactly now.. Anyway thanks.. :)
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.