Tomasz
26th January 2011, 11:03
Hello!
I've got a little problem with setting style sheet in my code:
this->setStyleSheet(QString("QCheckBox::indicator:unchecked {image: url("APP_PATH"\"/grafqtch/uncheckedbig.png\");}"));
this->setStyleSheet(QString("QCheckBox::indicator:checked {image: url("APP_PATH"\"/grafqtch/checkedbig.png\");}"));
APP_PATH is a definition with a prefix of my application path (in configuration header file). I want all QCheckBox to have this style. When I put this in graphic editor in style sheet section of my form (without APP_PATH) it works fine but with that path also have problems. Can I somehow use header configuration file while I'm designing form in graphic mode? Or maybe I can set that stylesheet in code in a different way?
thanks in advance
best regards
Tomasz
I've got a little problem with setting style sheet in my code:
this->setStyleSheet(QString("QCheckBox::indicator:unchecked {image: url("APP_PATH"\"/grafqtch/uncheckedbig.png\");}"));
this->setStyleSheet(QString("QCheckBox::indicator:checked {image: url("APP_PATH"\"/grafqtch/checkedbig.png\");}"));
APP_PATH is a definition with a prefix of my application path (in configuration header file). I want all QCheckBox to have this style. When I put this in graphic editor in style sheet section of my form (without APP_PATH) it works fine but with that path also have problems. Can I somehow use header configuration file while I'm designing form in graphic mode? Or maybe I can set that stylesheet in code in a different way?
thanks in advance
best regards
Tomasz