| 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.
| QApplication::NormalColors | |
| QApplication::CustomColors |
Use ColorMode(colorSpec()) instead.
Use flush() instead.
Always returns true. ###
Use QSysInfo::MacintoshVersion instead.
Use setColorSpec(ColorSpec(mode)) instead.
###
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use the palette instead.
For example, if you have code like
app.setWinStyleHighlightColor(color);
you can rewrite it as
QPalette palette(qApp->palette());
palette.setColor(QPalette::Highlight, color);
qApp->setPalette(palette);
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use the two-argument widgetAt() overload to get the child widget. To get the top-level widget do this:
QWidget *widget = qApp->widgetAt(x, y);
if (widget)
widget = widget->topLevelWidget();
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use the single-argument widgetAt() overload to get the child widget. To get the top-level widget do this:
QWidget *widget = qApp->widgetAt(point);
if (widget)
widget = widget->topLevelWidget();
Use qApp->palette().color(QPalette::Active, QPalette::Highlight) instead.
Returns the version of the Windows operating system that is running:
| Version | OS |
|---|---|
| Qt::WV_95 | Windows 95 |
| Qt::WV_98 | Windows 98 |
| Qt::WV_Me | Windows Me |
| Qt::WV_NT | Windows NT 4.x |
| Qt::WV_2000 | Windows 2000 (NT5) |
| Qt::WV_XP | Windows XP |
| Qt::WV_2003 | Windows Server 2003 family |
| Qt::WV_CE | Windows CE |
| Qt::WV_CENET | Windows CE.NET |
Warning: This function is only implemented for the Windows version of Qt.
| Copyright © 2004 Trolltech | Trademarks | Qt 4.0.0-b1 |