Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

TQt Class Reference

The TQt class is a namespace for miscellaneous identifiers that need to be global-like. More...

#include <tqnamespace.h>

Inherited by TQObject, TQPixmap, TQBrush, TQCanvasItem, TQCursor, TQPainter, TQEvent, TQIconViewItem, TQKeySequence, TQListViewItem, TQCustomMenuItem, TQPen, TQStyleSheetItem, TQSyntaxHighlighter, TQTab, TQTableItem, TQThread, TQToolTip, and TQWhatsThis.

List of all member functions.

Public Members


Detailed Description

The TQt class is a namespace for miscellaneous identifiers that need to be global-like.

Normally, you can ignore this class. TQObject and a few other classes inherit it, so all the identifiers in the TQt namespace are normally usable without qualification.

However, you may occasionally need to say TQt::black instead of just black, particularly in static utility functions (such as many class factories).

See also Miscellaneous Classes.


Member Type Documentation

TQt::AlignmentFlags

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:

You can use at most one horizontal and one vertical flag at a time. AlignCenter counts as both horizontal and vertical.

Masks:

Conflicting combinations of flags have undefined meanings.

TQt::AnchorAttribute

An anchor has one or more of the following attributes:

TQt::ArrowType

TQt::BGMode

Background mode

TQt::BackgroundMode

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( TQColorGroup::Background ), and so on.

The final three values have special meaning:

Although FixedColor and FixedPixmap are sometimes just right, if you use them, make sure that you test your application when the desktop color scheme has been changed. (On X11, a quick way to test this is e.g. "./myapp -bg paleblue". On Windows, you must use the control panel.)

See also TQWidget::backgroundMode, TQWidget::backgroundMode, TQWidget::setBackgroundPixmap(), and TQWidget::paletteBackgroundColor.

TQt::BrushStyle

Brush Styles

TQt::ButtonState

This enum type describes the state of the mouse and the modifier buttons.

TQt::Corner

This enum type specifies a corner in a rectangle:

TQt::CursorShape

This enum type defines the various cursors that can be used.

ArrowCursor is the default for widgets in a normal state.

Cursor Shapes

TQt::DateFormat

TQt::Dock

Each dock window can be in one of the following positions:

TQt::GUIStyle

This type is obsolete. It is provided to keep old source working. We strongly advise against using it in new code.

TQt::ImageConversionFlags

The conversion flag is a bitwise-OR of the following values. The options marked "(default)" are set if no other values from the list are included (since the defaults are zero):

Color/Mono preference (ignored for TQBitmap)

Dithering mode preference for RGB channels

Dithering mode preference for alpha channel

Color matching versus dithering preference

The following are not values that are used directly, but masks for the above classes:

Using 0 as the conversion flag sets all the default options.

TQt::Key

The key names used by TQt.

Multimedia keys

TQt::MacintoshVersion

TQt::Modifier

This enum type describes the keyboard modifier keys supported by TQt.

TQt::Orientation

This type is used to signify an object's orientation.

Orientation is used with TQScrollBar for example.

TQt::PaintUnit

TQt::PenCapStyle

This enum type defines the pen cap styles supported by TQt, i.e. the line end caps that can be drawn using TQPainter.

Pen Cap Styles

TQt::PenJoinStyle

This enum type defines the pen join styles supported by TQt, i.e. which joins between two connected lines can be drawn using TQPainter.

Pen Join Styles

TQt::PenStyle

This enum type defines the pen styles that can be drawn using TQPainter. The styles are

Pen Styles

TQt::RasterOp

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.

By far the most useful ones are CopyROP and XorROP.

TQt::SequenceMatch

TQt::SortOrder

This enum describes how the items in a widget are sorted.

TQt::StringComparisonMode

This enum type is used to set the string comparison mode when searching for an item. It is used by TQListBox, TQListView and TQIconView, for example. We'll refer to the string being searched as the 'target' string.

If you OR these flags together (excluding CaseSensitive), the search criteria be applied in the following order: ExactMatch, BeginsWith, EndsWith, Contains.

Matching is case-insensitive unless CaseSensitive is set. CaseSensitive can be OR-ed with any combination of the other flags.

TQt::TextFlags

This enum type is used to define some modifier flags. Some of these flags only make sense in the context of 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 TQGridLayout::addWidget()) are generally ignored.

TQt::TextFormat

This enum is used in widgets that can display both plain text and rich text, e.g. TQLabel. 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.

TQt::TimeSpec

TQt::UIEffect

TQt::WidgetFlags

This enum type is used to specify various window-system properties for the widget. They are fairly unusual but necessary in a few cases. Some of these flags depend on whether the underlying window manager supports them. (See the toplevel example for an explanation and example of their use.)

The main types are

There are also a number of flags which you can use to customize the appearance of top-level windows. These have no effect on other windows:

Modifier flags:

Miscellaneous flags

Internal flags.

TQt::WidgetState

Internal flags.

TQt::WindowState

This enum type is used to specify the current state of a top-level window.

The states are

TQt::WindowsVersion


This file is part of the TQt toolkit. Copyright © 1995-2007 Trolltech. All Rights Reserved.


Copyright © 2007 TrolltechTrademarks
TQt 3.3.8