Logo Search packages:      
Sourcecode: qt4-x11 version File versions

const QPalette & QWidget::palette [read, write, inherited]

the widget's palette

As long as no special palette has been set, this is either a special palette for the widget class, the parent's palette, or (if this widget is a top level widget), the default application palette.

The palette's background color will only have an effect on the appearance of the widget if the autoFillBackground property is set.

There are two types of styles in Qt: A color based one used to indicate the background, foreground, etc., and A pixmap based one which usually relies on a theming engine on the underlying platform.

Changing this property on a widget with a pixmap based style will usually not result in a visual change on that widget. Refer to our Knowledge Base article {http://trolltech.com/developer/knowledgebase/22}{here} for more information.

Warning:
Do not use this function in conjunction with {Qt Style Sheets}. When using style sheets, the palette of a widget can be customized using the "color", "background-color", "selection-color", "selection-background-color" and "alternate-background-color".
See also:
QApplication::palette()

Definition at line 172 of file qwidget.h.

Referenced by QMessageBox::aboutQt(), QLabel::changeEvent(), QLineEdit::changeEvent(), QComboBox::changeEvent(), QTextEdit::changeEvent(), Q3IconView::changeEvent(), Q3ListBox::changeEvent(), Q3ListView::changeEvent(), Q3TextEdit::changeEvent(), QWebView::changeEvent(), QPlainTextEdit::changeEvent(), QCommonStyle::drawComplexControl(), QWindowsStyle::drawComplexControl(), QCleanlooksStyle::drawComplexControl(), QWindowsXPStyle::drawComplexControl(), Q3IconView::drawContents(), Q3TextEdit::drawContents(), Q3ListView::drawContentsOffset(), QPlastiqueStyle::drawControl(), QCommonStyle::drawControl(), Q3DockWindow::drawFrame(), QWindowsVistaStyle::drawPrimitive(), QCommonStyle::drawPrimitive(), QWindowsXPStyle::drawPrimitive(), QPlastiqueStyle::drawPrimitive(), QWindowsStyle::drawPrimitive(), Q3IconView::drawRubber(), Q3Canvas::drawViewArea(), Q3IconView::eventFilter(), Q3TextEdit::eventFilter(), QStyleOption::init(), QPainter::initFrom(), QMenu::initStyleOption(), QMenuBar::initStyleOption(), QMenuBar::minimumSizeHint(), QTabWidget::minimumSizeHint(), Q3TextEdit::optimDrawContents(), Q3ListBox::paintCell(), Q3CheckListItem::paintCell(), Q3Table::paintCell(), Q3ListViewItem::paintCell(), QComboBox::paintEvent(), QCommandLinkButton::paintEvent(), QLineEdit::paintEvent(), QSplitterHandle::paintEvent(), QMenuBar::paintEvent(), QStatusBar::paintEvent(), Q3MainWindow::paintEvent(), QToolBar::paintEvent(), QLabel::paintEvent(), QMenu::paintEvent(), Document::paintEvent(), StarEditor::paintEvent(), QGraphicsView::paintEvent(), QPlainTextEdit::paintEvent(), Q3Header::paintEvent(), MyWidget::paintEvent2(), Q3Table::paintFocus(), Q3Header::paintSection(), QMdiArea::QMdiArea(), QWebView::QWebView(), QGraphicsView::scrollContentsBy(), QGLWidget::setContext(), Q3SyntaxHighlighter::setFormat(), Q3ComboBox::setListBox(), QWebView::setPage(), QSplashScreen::setPixmap(), Q3TextEdit::setSelectionAttributes(), MainWindow::setupUi(), TetrixBoard::showNextPiece(), QMenuBar::sizeHint(), QMenu::sizeHint(), QInputContext::standardFormat(), Q3ListBox::viewportPaintEvent(), and Q3Table::windowActivationChange().


Generated by  Doxygen 1.6.0   Back to index