![]() |
| ||
Classes - Annotated - Tree - Functions - Home - Structure |
The Qt class is a namespace for miscellaneous identifiers that need to be global-like. More...
#include <qnamespace.h>
Inherited by QObject, QPixmap, QBrush, QCanvasItem, QCursor, QEvent, QIconViewItem, QListViewItem, QCustomMenuItem, QPainter, QPen, QStyleSheetItem, QTableItem, QMutex, QThread, QWaitCondition, QSemaphore, QToolTip and QWhatsThis.
The Qt class is a namespace for miscellaneous identifiers that need to be global-like.
Normally, you can ignore this class. QObject and a few other classes inherit it, so all the identifiers in the Qt namespace are visible to you without qualification.
However, you may occasionally need to say Qt::black instead of just black, particularly in static utility functions (such as many class factories).
This enum type is used to describe alignment. It contains horizontal and vertical flags. The horizontal flags are:
The vertical flags are:
You can use only one of the horizontal flags at a time. There is one two-dimensional flag:
Masks:
This counts both as a horizontal and a vertical flag; it cannot be combined with any other horizontal or vertical flags.
You can use at most one horizontal and one vertical flags at a time. AlignCenter counts as both horizontal and vertical.
Conflicting combinations of flags have undefined meanings.
Background mode
This enum describes how the background of a widget changes, as the widget's palette changes.
The background is what the widget contains when paintEvent() is called. To minimize flicker, this should be the most common color or pixmap in the widget. For PaletteBackground, use colorGroup().brush( QColorGroup::Background ), and so on. There are also three special values, listed at the end:
FixedColor and FixedPixmap sometimes are just the right thing, but if you use them, make sure that your application looks right when the desktop color scheme has been changed. (On X11, a quick way to test is e.g. "./yourapp -bg paleblue". On Windows, you have to use the control panel.)
See also QWidget::backgroundMode, QWidget::backgroundMode, QWidget::setBackgroundPixmap() and QWidget::backgroundColor.
This enum type defines the various cursors that can be used.
ArrowCursor is the default for widgets in a normal state.
Each dock window can be in one of the following positions:
This type is obsolete. It is provided to keep old source working. We strongly advise against using it in new code.
This enum only exists to keep existing source working.
The conversion flag is a bitwise-OR of the following values. The options marked (default) are the set if no other values from the list are included (since the defaults are zero):
Color/Mono preference (ignored for QBitmap)
Dithering mode preference for RGB channels
Dithering mode preference for alpha channel
Color matching versus dithering preference
The following are no values that are used directly, but masks for the above classes:
Using 0 as the conversion flag sets all the default options.
The key names used by Qt.
This enum type describes the keyboard modifier keys supported by Qt. The currently defined values are:
This type is used to signify whether an object should be Horizontal or Vertical (for example in QScrollBar).
This enum type defines the pen cap styles supported by Qt, i.e. the line end caps that can be drawn using QPainter. The available styles are:
This enum type defines the pen join styles supported by Qt, i.e., which joins between two connected lines can be drawn using QPainter. The available styles are:
This enum type defines the pen styles supported by Qt, i.e., the lines that can be drawn using QPainter. The current styles are:
This enum type is used to describe the way things are written to the paint device. Each bit of the src (what you write) interacts with the corresponding bit of the dst pixel. The currently defined values are:
By far the most useful ones are CopyROP and XorROP.
This enum type is used to set the string comparison mode when searching for an item. This is implemented in QListBox, QListView and QIconView.
You can use one or more of these flags (other than CaseSensitive), it will individually check the options in the following order: ExactMatch, BeginsWith, EndsWith, Contains.
This enum type is used to define some modifier flags. All of them apply only to printing:
You can use as many modifier flags as you want, except that SingleLine and WordBreak cannot be combined.
Flags that are inappropriate for a given use (e.g., ShowPrefix to QGridLayout::addWidget()) are generally ignored.
This enum is used in widgets that can display both plain text and rich text, e.g., QLabel. It is used for deciding whether a text string should be interpreted as one or the other. This is normally done by passing one of the enum values to a setTextFormat() function.
This enum type is used to specify various window-system properties of the widget. They are fairly unusual but necessary in a few cases.
The main types are
There are also a number of flags to let you customize the appearance of top-level windows. These have no effect on other windows:
Modifier flags:
Miscellaneous flags
Internal flags.
Internal flags.
Search the documentation, FAQ, qt-interest archive and more (uses
www.trolltech.com):
This file is part of the Qt toolkit, copyright © 1995-2001 Trolltech, all rights reserved.
Copyright © 2001 Trolltech | Trademarks | Qt version 3.0.0-beta2
|