Здравствуйте, гость ( Вход | Регистрация )
Litkevich Yuriy | Дата 9.4.2008, 15:04 |
AD, тот пример что я давал по поводу png-картинок, содержит панель синиго цвета, посмотри там один цвет впалитре надо поменять. | |
ViGOur | Дата 9.4.2008, 15:03 |
Цитата One consequence of this is that setting a style rule on a widget automatically gives it precedence over other rules specified in the ancestor widgets' style sheets or the QApplication style sheet. Consider the following example. First, we set a style sheet on the QApplication: qApp->setStyleSheet("QPushButton { color: white }"); Then we set a style sheet on a QPushButton object: myPushButton->setStyleSheet("* { color: blue }"); The style sheet on the QPushButton forces the QPushButton (and any child widget) to have blue text, in spite of the more specific rule set provided by the application-wide style sheet. The result would have been the same if we had written myPushButton->setStyleSheet("color: blue"); Смотри: The Style Sheet Syntax |
|
AD | Дата 9.4.2008, 14:58 |
Можно пример простейшего кода! Не понимаю, как таблицей стилей! Именно кода! Мне необходимо видеть, как это ручками делается? Цитата The style sheet on the QPushButton forces the QPushButton (and any child widget) to have blue text, in spite of the more specific rule set provided by the application-wide style sheet. The result would have been the same if we had written myPushButton->setStyleSheet("color: blue"); Смотри: The Style Sheet Syntax о, спасибо! Подойдет |
|
ViGOur | Дата 9.4.2008, 14:55 |
Таблица стилей. Или ты хочешь по другому? |
|
AD | Дата 9.4.2008, 14:52 |
как кнопку сделать определенного цвета? Чтобы было понятно, вот рисунок. [attachment=57:button1.JPG] [attachment=58:button2.JPG] Как одеть цвет на кнопку? |
|
Просмотр темы полностью (откроется в новом окне) | |
Текстовая версия | Сейчас: 29.3.2024, 10:06 |