Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions | ![]() |
The following class members are part of the Qt 3 compatibility layer. They are provided to help you port old code to Qt 4. We strongly advise against using them in new code.
QWidget::WidgetOrigin | |
QWidget::ParentOrigin | |
QWidget::WindowOrigin | |
QWidget::AncestorOrigin |
Returns the color role used for painting the widget's background.
Use QPalette(backgroundRole(()) instead.
Use windowTitle() instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use the two coordinate argument overload instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use the single point argument overload instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Closes the widget.
Use the no-argument overload instead.
Use QColorGroup(palette()) instead.
Use ensurePolished() instead.
Drawing may only take place in a QPaintEvent. Overload paintEvent() to do your drawing and call update() to schedule a replaint whenever necessary. See also QPainter.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Drawing may only take place in a QPaintEvent. Overload paintEvent() to do your drawing and call update() to schedule a replaint whenever necessary. See also QPainter.
Drawing may only take place in a QPaintEvent. Overload paintEvent() to do your erasing and call update() to schedule a replaint whenever necessary. See also QPainter.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Drawing may only take place in a QPaintEvent. Overload paintEvent() to do your erasing and call update() to schedule a replaint whenever necessary. See also QPainter.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Drawing may only take place in a QPaintEvent. Overload paintEvent() to do your erasing and call update() to schedule a replaint whenever necessary. See also QPainter.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Clear the given region, rgn.
Drawing may only take place in a QPaintEvent. Overload paintEvent() to do your erasing and call update() to schedule a replaint whenever necessary. See also QPainter.
Use testAttribute(Qt::WA_UnderMouse) instead.
Return's the widget's icon.
Use windowIconText() instead().
Use windowIconText() instead();
Use showMinimized() instead.
Use isVisible() instead.
Use testAttribute(Qt::WA_SetCursor) instead.
Use testAttribute(Qt::WA_SetFont) instead.
Use testAttribute(Qt::WA_SetPalette) instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use the no-argument overload instead.
Use setParent() to change the parent or the widget's widget flags; use move() to move the widget, and use show() to show the widget.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use the no-argument overload instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use the four-argument overload instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use the single rect-argument overload instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use the single region-argument overload instead.
Use setParent() to change the parent or the widget's widget flags; use move() to move the widget, and use show() to show the widget.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use setParent() to change the parent; use move() to move the widget, and use show() to show the widget.
Use the palette instead.
For example, if you have code like
widget->setBackgroundColor(color);
you can rewrite it as
QPalette palette(widget->palette()); palette.setColor(widget->backgroundRole(), color); widget->setPalette(palette);
Sets the color role used for painting the widget's background to background mode widgetBackground. The paletteBackground mode parameter is ignored.
Use the palette instead.
For example, if you have code like
widget->setBackgroundPixmap(pixmap);
you can rewrite it as
QPalette palette(widget->palette()); palette.setBrush(widget->backgroundRole(), QBrush(pixmap)); widget->setPalette(palette);
Use setWindowTitle() instead.
Use the palette instead.
For example, if you have code like
widget->setEraseColor(color);
you can rewrite it as
QPalette palette(widget->palette()); palette.setColor(widget->backgroundRole(), color); widget->setPalette(palette);
Use the palette instead.
For example, if you have code like
widget->setErasePixmap(pixmap);
you can rewrite it as
QPalette palette(widget->palette()); palette.setBrush(widget->backgroundRole(), QBrush(pixmap)); widget->setPalette(palette);
Use setWindowIcon() instead.
Use setWindowIconText() instead.
Use setAttribute(Qt::WA_KeyCompression, b) instead.
Use the palette directly.
For example, if you have code like
widget->setPaletteBackgroundColor(color);
you can rewrite it as
QPalette palette(widget->palette()); palette.setColor(widget->backgroundRole(), color); widget->setPalette(palette);
Use the palette directly.
For example, if you have code like
widget->setPaletteBackgroundPixmap(pixmap);
you can rewrite it as
QPalette palette(widget->palette()); palette.setBrush(widget->backgroundRole(), QBrush(pixmap)); widget->setPalette(palette);
Use the palette directly.
For example, if you have code like
widget->setPaletteForegroundColor(color);
you can rewrite it as
QPalette palette(widget->palette()); palette.setColor(widget->foregroundRole(), color); widget->setPalette(palette);
Use setFont(QFont()) instead.
Use setPalette(QPalette()) instead.
holds the widget's visible rectangle
Copyright © 2004 Trolltech | Trademarks | Qt 4.0.0-b1 |