Obsolete Members for QApplication
The following members of class QApplication are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Public Types
(obsolete) enum | ColorSpec { NormalColor, CustomColor, ManyColor } |
Properties
(obsolete)globalStrut : QSize
Static Public Members
(obsolete) QSize | globalStrut() |
(obsolete) void | setGlobalStrut(const QSize &) |
Member Type Documentation
enum QApplication::ColorSpec
This enum is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
| Constant | Value | Description |
|---|---|---|
QApplication::NormalColor | 0 | the default color allocation policy |
QApplication::CustomColor | 1 | the same as NormalColor for X11; allocates colors to a palette on demand under Windows |
QApplication::ManyColor | 2 | the right choice for applications that use thousands of colors |
See setColorSpec() for full details.
Property Documentation
globalStrut : QSize
This property is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
This property holds the minimum size that any GUI element that the user can interact with should have
For example, no button should be resized to be smaller than the global strut size. The strut size should be considered when reimplementing GUI controls that may be used on touch-screens or similar I/O devices.
Example:
QSize MyWidget::sizeHint() const { return QSize(80, 25); }
By default, this property contains a QSize object with zero width and height.
Access functions:
| QSize | globalStrut() |
| void | setGlobalStrut(const QSize &) |