Qyoto
4.0.5
Qyoto is a C# language binding for Qt
|
Classes | |
class | QAbstractButton |
The QAbstractButton class is the abstract base class of button widgets, providing functionality common to buttons. More... | |
class | QAbstractButtonInternal |
class | QAbstractGraphicsShapeItem |
The QAbstractGraphicsShapeItem class provides a common base for all path items. More... | |
class | QAbstractGraphicsShapeItemInternal |
class | QAbstractItemDelegate |
The QAbstractItemDelegate class is used to display and edit data items from a model. More... | |
class | QAbstractItemDelegateInternal |
class | QAbstractItemView |
The QAbstractItemView class provides the basic functionality for item view classes. More... | |
class | QAbstractItemViewInternal |
class | QAbstractPageSetupDialog |
class | QAbstractPageSetupDialogInternal |
class | QAbstractPrintDialog |
The QAbstractPrintDialog class provides a base implementation for print dialogs used to configure printers. More... | |
class | QAbstractPrintDialogInternal |
class | QAbstractProxyModel |
The QAbstractProxyModel class provides a base class for proxy item models that can do sorting, filtering or other data processing tasks. More... | |
class | QAbstractProxyModelInternal |
class | QAbstractScrollArea |
The QAbstractScrollArea widget provides a scrolling area with on-demand scroll bars. More... | |
class | QAbstractSlider |
The QAbstractSlider class provides an integer value within a range. More... | |
class | QAbstractSpinBox |
The QAbstractSpinBox class provides a spinbox and a line edit to display values. More... | |
class | QAbstractTextDocumentLayout |
The QAbstractTextDocumentLayout class is an abstract base class used to implement custom layouts for QTextDocuments. More... | |
class | QAbstractTextDocumentLayoutInternal |
class | QAbstractUndoItem |
class | QAbstractUndoItemInternal |
class | QAction |
The QAction class provides an abstract user interface action that can be inserted into widgets. More... | |
class | QActionEvent |
The QActionEvent class provides an event that is generated when a QAction is added, removed, or changed. More... | |
class | QActionGroup |
The QActionGroup class groups actions together. More... | |
class | QApplication |
The QApplication class manages the GUI application's control flow and main settings. More... | |
class | QBitmap |
The QBitmap class provides monochrome (1-bit depth) pixmaps. More... | |
class | QBoxLayout |
The QBoxLayout class lines up child widgets horizontally or vertically. More... | |
class | QBrush |
The QBrush class defines the fill pattern of shapes drawn by QPainter. More... | |
class | QButtonGroup |
The QButtonGroup class provides a container to organize groups of button widgets. More... | |
class | QCalendarWidget |
The QCalendarWidget class provides a monthly based calendar widget allowing the user to select a date. More... | |
class | QCheckBox |
The QCheckBox widget provides a checkbox with a text label. More... | |
class | QClipboard |
The QClipboard class provides access to the window system clipboard. More... | |
class | QClipboardEvent |
class | QCloseEvent |
The QCloseEvent class contains parameters that describe a close event. More... | |
class | QColor |
The QColor class provides colors based on RGB, HSV or CMYK values. More... | |
class | QColorDialog |
The QColorDialog class provides a dialog widget for specifying colors. More... | |
class | QColormap |
The QColormap class maps device independent QColors to device dependent pixel values. More... | |
class | QColumnView |
The QColumnView class provides a model/view implementation of a column view. More... | |
class | QComboBox |
The QComboBox widget is a combined button and popup list. More... | |
class | QCommandLinkButton |
The QCommandLinkButton widget provides a Vista style command link button. More... | |
class | QCommonStyle |
The QCommonStyle class encapsulates the common Look and Feel of a GUI. More... | |
class | QCompleter |
The QCompleter class provides completions based on an item model. More... | |
class | QConicalGradient |
The QConicalGradient class is used in combination with QBrush to specify a conical gradient brush. More... | |
class | QContextMenuEvent |
The QContextMenuEvent class contains parameters that describe a context menu event. More... | |
class | QCursor |
The QCursor class provides a mouse cursor with an arbitrary shape. More... | |
class | QDataWidgetMapper |
The QDataWidgetMapper class provides mapping between a section of a data model to widgets. More... | |
class | QDateEdit |
The QDateEdit class provides a widget for editing dates based on the QDateTimeEdit widget. More... | |
class | QDateTimeEdit |
The QDateTimeEdit class provides a widget for editing dates and times. More... | |
class | QDesktopServices |
The QDesktopServices class provides methods for accessing common desktop services. More... | |
class | QDesktopWidget |
The QDesktopWidget class provides access to screen information on multi-head systems. More... | |
class | QDial |
The QDial class provides a rounded range control (like a speedometer or potentiometer). More... | |
class | QDialog |
The QDialog class is the base class of dialog windows. More... | |
class | QDialogButtonBox |
The QDialogButtonBox class is a widget that presents buttons in a layout that is appropriate to the current widget style. More... | |
class | QDirModel |
The QDirModel class provides a data model for the local filesystem. More... | |
class | QDockWidget |
The QDockWidget class provides a widget that can be docked inside a QMainWindow or floated as a top-level window on the desktop. More... | |
class | QDoubleSpinBox |
The QDoubleSpinBox class provides a spin box widget that takes doubles. More... | |
class | QDoubleValidator |
The QDoubleValidator class provides range checking of floating-point numbers. More... | |
class | QDrag |
The QDrag class provides support for MIME-based drag and drop data transfer. More... | |
class | QDragEnterEvent |
The QDragEnterEvent class provides an event which is sent to a widget when a drag and drop action enters it. More... | |
class | QDragLeaveEvent |
The QDragLeaveEvent class provides an event that is sent to a widget when a drag and drop action leaves it. More... | |
class | QDragMoveEvent |
The QDragMoveEvent class provides an event which is sent while a drag and drop action is in progress. More... | |
class | QDragResponseEvent |
class | QDropEvent |
The QDropEvent class provides an event which is sent when a drag and drop action is completed. More... | |
class | QErrorMessage |
The QErrorMessage class provides an error message display dialog. More... | |
class | QFileDialog |
The QFileDialog class provides a dialog that allow users to select files or directories. More... | |
class | QFileIconProvider |
The QFileIconProvider class provides file icons for the QDirModel(obsolete) and the QFileSystemModel classes. More... | |
class | QFileOpenEvent |
The QFileOpenEvent class provides an event that will be sent when there is a request to open a file or a URL. More... | |
class | QFileSystemModel |
The QFileSystemModel class provides a data model for the local filesystem. More... | |
class | QFocusEvent |
The QFocusEvent class contains event parameters for widget focus events. More... | |
class | QFocusFrame |
The QFocusFrame widget provides a focus frame which can be outside of a widget's normal paintable area. More... | |
class | QFont |
The QFont class specifies a font used for drawing text. More... | |
class | QFontComboBox |
The QFontComboBox widget is a combobox that lets the user select a font family. More... | |
class | QFontDatabase |
The QFontDatabase class provides information about the fonts available in the underlying window system. More... | |
class | QFontDialog |
The QFontDialog class provides a dialog widget for selecting a font. More... | |
class | QFontInfo |
The QFontInfo class provides general information about fonts. More... | |
class | QFontMetrics |
The QFontMetrics class provides font metrics information. More... | |
class | QFontMetricsF |
The QFontMetricsF class provides font metrics information. More... | |
class | QFormLayout |
The QFormLayout class manages forms of input widgets and their associated labels. More... | |
class | QFrame |
The QFrame class is the base class of widgets that can have a frame. More... | |
class | QGesture |
The QGesture class represents a gesture, containing properties that describe the corresponding user input. More... | |
class | QGestureEvent |
The QGestureEvent class provides the description of triggered gestures. More... | |
class | QGestureRecognizer |
The QGestureRecognizer class provides the infrastructure for gesture recognition. More... | |
class | QGestureRecognizerInternal |
class | Global |
class | QGlyphRun |
The QGlyphRun class provides direct access to the internal glyphs in a font. More... | |
class | QGradient |
The QGradient class is used in combination with QBrush to specify gradient fills. More... | |
class | QGraphicsAnchor |
The QGraphicsAnchor class represents an anchor between two items in a QGraphicsAnchorLayout. More... | |
class | QGraphicsAnchorLayout |
The QGraphicsAnchorLayout class provides a layout where one can anchor widgets together in Graphics View. More... | |
class | QGraphicsBlurEffect |
The QGraphicsBlurEffect class provides a blur effect. More... | |
class | QGraphicsColorizeEffect |
The QGraphicsColorizeEffect class provides a colorize effect. More... | |
class | QGraphicsDropShadowEffect |
The QGraphicsDropShadowEffect class provides a drop shadow effect. More... | |
class | QGraphicsEffect |
The QGraphicsEffect class is the base class for all graphics effects. More... | |
class | QGraphicsEffectInternal |
class | QGraphicsEllipseItem |
The QGraphicsEllipseItem class provides an ellipse item that you can add to a QGraphicsScene. More... | |
class | QGraphicsGridLayout |
The QGraphicsGridLayout class provides a grid layout for managing widgets in Graphics View. More... | |
class | QGraphicsItem |
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene. More... | |
class | QGraphicsItemInternal |
class | QGraphicsItemAnimation |
The QGraphicsItemAnimation class provides simple animation support for QGraphicsItem. More... | |
class | QGraphicsItemGroup |
The QGraphicsItemGroup class provides a container that treats a group of items as a single item. More... | |
class | QGraphicsLayout |
The QGraphicsLayout class provides the base class for all layouts in Graphics View. More... | |
class | QGraphicsLayoutInternal |
class | QGraphicsLayoutItem |
The QGraphicsLayoutItem class can be inherited to allow your custom items to be managed by layouts. More... | |
class | QGraphicsLayoutItemInternal |
class | QGraphicsLineItem |
The QGraphicsLineItem class provides a line item that you can add to a QGraphicsScene. More... | |
class | QGraphicsLinearLayout |
The QGraphicsLinearLayout class provides a horizontal or vertical layout for managing widgets in Graphics View. More... | |
class | QGraphicsObject |
The QGraphicsObject class provides a base class for all graphics items that require signals, slots and properties. More... | |
class | QGraphicsObjectInternal |
class | QGraphicsOpacityEffect |
The QGraphicsOpacityEffect class provides an opacity effect. More... | |
class | QGraphicsPathItem |
The QGraphicsPathItem class provides a path item that you can add to a QGraphicsScene. More... | |
class | QGraphicsPixmapItem |
The QGraphicsPixmapItem class provides a pixmap item that you can add to a QGraphicsScene. More... | |
class | QGraphicsPolygonItem |
The QGraphicsPolygonItem class provides a polygon item that you can add to a QGraphicsScene. More... | |
class | QGraphicsProxyWidget |
The QGraphicsProxyWidget class provides a proxy layer for embedding a QWidget in a QGraphicsScene. More... | |
class | QGraphicsRectItem |
The QGraphicsRectItem class provides a rectangle item that you can add to a QGraphicsScene. More... | |
class | QGraphicsRotation |
The QGraphicsRotation class provides a rotation transformation around a given axis. More... | |
class | QGraphicsScale |
The QGraphicsScale class provides a scale transformation. More... | |
class | QGraphicsScene |
The QGraphicsScene class provides a surface for managing a large number of 2D graphical items. More... | |
class | QGraphicsSceneContextMenuEvent |
The QGraphicsSceneContextMenuEvent class provides context menu events in the graphics view framework. More... | |
class | QGraphicsSceneDragDropEvent |
The QGraphicsSceneDragDropEvent class provides events for drag and drop in the graphics view framework. More... | |
class | QGraphicsSceneEvent |
The QGraphicsSceneEvent class provides a base class for all graphics view related events. More... | |
class | QGraphicsSceneHelpEvent |
The QGraphicsSceneHelpEvent class provides events when a tooltip is requested. More... | |
class | QGraphicsSceneHoverEvent |
The QGraphicsSceneHoverEvent class provides hover events in the graphics view framework. More... | |
class | QGraphicsSceneMouseEvent |
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework. More... | |
class | QGraphicsSceneMoveEvent |
The QGraphicsSceneMoveEvent class provides events for widget moving in the graphics view framework. More... | |
class | QGraphicsSceneResizeEvent |
The QGraphicsSceneResizeEvent class provides events for widget resizing in the graphics view framework. More... | |
class | QGraphicsSceneWheelEvent |
The QGraphicsSceneWheelEvent class provides wheel events in the graphics view framework. More... | |
class | QGraphicsSimpleTextItem |
The QGraphicsSimpleTextItem class provides a simple text path item that you can add to a QGraphicsScene. More... | |
class | QGraphicsTextItem |
The QGraphicsTextItem class provides a text item that you can add to a QGraphicsScene to display formatted text. More... | |
class | QGraphicsTransform |
The QGraphicsTransform class is an abstract base class for building advanced transformations on QGraphicsItems. More... | |
class | QGraphicsTransformInternal |
class | QGraphicsView |
The QGraphicsView class provides a widget for displaying the contents of a QGraphicsScene. More... | |
class | QGraphicsWidget |
The QGraphicsWidget class is the base class for all widget items in a QGraphicsScene. More... | |
class | QGridLayout |
The QGridLayout class lays out widgets in a grid. More... | |
class | QGroupBox |
The QGroupBox widget provides a group box frame with a title. More... | |
class | QHBoxLayout |
The QHBoxLayout class lines up widgets horizontally. More... | |
class | QHeaderView |
The QHeaderView class provides a header row or header column for item views. More... | |
class | QHelpEvent |
The QHelpEvent class provides an event that is used to request helpful information about a particular point in a widget. More... | |
class | QHideEvent |
The QHideEvent class provides an event which is sent after a widget is hidden. More... | |
class | QHoverEvent |
The QHoverEvent class contains parameters that describe a mouse event. More... | |
class | QIcon |
The QIcon class provides scalable icons in different modes and states. More... | |
class | QIconDragEvent |
The QIconDragEvent class indicates that a main icon drag has begun. More... | |
class | QIconEngine |
The QIconEngine class provides an abstract base class for QIcon renderers. More... | |
class | QIconEngineInternal |
class | QIconEngineFactoryInterface |
class | QIconEngineFactoryInterfaceInternal |
class | QIconEngineFactoryInterfaceV2 |
class | QIconEngineFactoryInterfaceV2Internal |
class | QIconEnginePlugin |
The QIconEnginePlugin class provides an abstract base for custom QIconEngine plugins. More... | |
class | QIconEnginePluginInternal |
class | QIconEnginePluginV2 |
The QIconEnginePluginV2 class provides an abstract base for custom QIconEngineV2 plugins. More... | |
class | QIconEnginePluginV2Internal |
class | QIconEngineV2 |
The QIconEngineV2 class provides an abstract base class for QIcon renderers. More... | |
class | QIconEngineV2Internal |
class | QImage |
The QImage class provides a hardware-independent image representation that allows direct access to the pixel data, and can be used as a paint device. More... | |
class | QImageIOHandler |
The QImageIOHandler class defines the common image I/O interface for all image formats in Qt. More... | |
class | QImageIOHandlerInternal |
class | QImageIOHandlerFactoryInterface |
class | QImageIOHandlerFactoryInterfaceInternal |
class | QImageIOPlugin |
The QImageIOPlugin class defines an interface for writing an image format plugin. More... | |
class | QImageIOPluginInternal |
class | QImageReader |
The QImageReader class provides a format independent interface for reading images from files or other devices. More... | |
class | QImageTextKeyLang |
class | QImageWriter |
The QImageWriter class provides a format independent interface for writing images to files or other devices. More... | |
class | QInputContext |
The QInputContext class abstracts the input method dependent data and composing state. More... | |
class | QInputContextInternal |
class | QInputContextFactory |
The QInputContextFactory class creates QInputContext objects. More... | |
class | QInputContextFactoryInterface |
class | QInputContextFactoryInterfaceInternal |
class | QInputContextPlugin |
The QInputContextPlugin class provides an abstract base for custom QInputContext plugins. More... | |
class | QInputContextPluginInternal |
class | QInputDialog |
The QInputDialog class provides a simple convenience dialog to get a single value from the user. More... | |
class | QInputEvent |
The QInputEvent class is the base class for events that describe user input. More... | |
class | QInputMethodEvent |
The QInputMethodEvent class provides parameters for input method events. More... | |
class | QIntValidator |
The QIntValidator class provides a validator that ensures a string contains a valid integer within a specified range. More... | |
class | QItemDelegate |
The QItemDelegate class provides display and editing facilities for data items from a model. More... | |
class | QItemEditorCreatorBase |
The QItemEditorCreatorBase class provides an abstract base class that must be subclassed when implementing new item editor creators. More... | |
class | QItemEditorCreatorBaseInternal |
class | QItemEditorFactory |
The QItemEditorFactory class provides widgets for editing item data in views and delegates. More... | |
class | QItemSelection |
The QItemSelection class manages information about selected items in a model. More... | |
class | QItemSelectionModel |
The QItemSelectionModel class keeps track of a view's selected items. More... | |
class | QItemSelectionRange |
The QItemSelectionRange class manages information about a range of selected items in a model. More... | |
class | QKeyEvent |
The QKeyEvent class describes a key event. More... | |
class | QKeyEventTransition |
The QKeyEventTransition class provides a transition for key events. More... | |
class | QKeySequence |
The QKeySequence class encapsulates a key sequence as used by shortcuts. More... | |
class | QLCDNumber |
The QLCDNumber widget displays a number with LCD-like digits. More... | |
class | QLabel |
The QLabel widget provides a text or image display. More... | |
class | QLayout |
The QLayout class is the base class of geometry managers. More... | |
class | QLayoutInternal |
class | QLayoutItem |
The QLayoutItem class provides an abstract item that a QLayout manipulates. More... | |
class | QLayoutItemInternal |
class | QLineEdit |
The QLineEdit widget is a one-line text editor. More... | |
class | QLinearGradient |
The QLinearGradient class is used in combination with QBrush to specify a linear gradient brush. More... | |
class | QListView |
The QListView class provides a list or icon view onto a model. More... | |
class | QListWidget |
The QListWidget class provides an item-based list widget. More... | |
class | QListWidgetItem |
The QListWidgetItem class provides an item for use with the QListWidget item view class. More... | |
class | QMainWindow |
The QMainWindow class provides a main application window. More... | |
class | QMatrix |
The QMatrix class specifies 2D transformations of a coordinate system. More... | |
class | QMatrix4x4 |
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space. More... | |
class | QMdiArea |
The QMdiArea widget provides an area in which MDI windows are displayed. More... | |
class | QMdiSubWindow |
The QMdiSubWindow class provides a subwindow class for QMdiArea. More... | |
class | QMenu |
The QMenu class provides a menu widget for use in menu bars, context menus, and other popup menus. More... | |
class | QMenuBar |
The QMenuBar class provides a horizontal menu bar. More... | |
class | QMessageBox |
The QMessageBox class provides a modal dialog for informing the user or for asking the user a question and receiving an answer. More... | |
class | QMimeSource |
The QMimeSource class is an abstraction of objects that provided formatted data of a certain MIME type. More... | |
class | QMimeSourceInternal |
class | QMouseEvent |
The QMouseEvent class contains parameters that describe a mouse event. More... | |
class | QMouseEventTransition |
The QMouseEventTransition class provides a transition for mouse events. More... | |
class | QMoveEvent |
The QMoveEvent class contains event parameters for move events. More... | |
class | QMovie |
The QMovie class is a convenience class for playing movies with QImageReader. More... | |
class | QPageSetupDialog |
The QPageSetupDialog class provides a configuration dialog for the page-related options on a printer. More... | |
class | QPaintDevice |
The QPaintDevice class is the base class of objects that can be painted. More... | |
class | QPaintDeviceInternal |
class | QPaintEngine |
The QPaintEngine class provides an abstract definition of how QPainter draws to a given device on a given platform. More... | |
class | QPaintEngineInternal |
class | QPaintEngineState |
The QPaintEngineState class provides information about the active paint engine's current state. More... | |
class | QPaintEvent |
The QPaintEvent class contains event parameters for paint events. More... | |
class | QPainter |
The QPainter class performs low-level painting on widgets and other paint devices. More... | |
class | QPainterPath |
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be constructed and reused. More... | |
class | QPainterPathStroker |
The QPainterPathStroker class is used to generate fillable outlines for a given painter path. More... | |
class | QPalette |
The QPalette class contains color groups for each widget state. More... | |
class | QPanGesture |
The QPanGesture class describes a panning gesture made by the user. More... | |
class | QPen |
The QPen class defines how a QPainter should draw lines and outlines of shapes. More... | |
class | QPicture |
The QPicture class is a paint device that records and replays QPainter commands. More... | |
class | QPictureFormatInterface |
class | QPictureFormatInterfaceInternal |
class | QPictureFormatPlugin |
The QPictureFormatPlugin class provides an abstract base for custom picture format plugins. More... | |
class | QPictureFormatPluginInternal |
class | QPictureIO |
The QPictureIO class contains parameters for loading and saving pictures. More... | |
class | QPinchGesture |
The QPinchGesture class describes a pinch gesture made by the user. More... | |
class | QPixmap |
The QPixmap class is an off-screen image representation that can be used as a paint device. More... | |
class | QPixmapCache |
The QPixmapCache class provides an application-wide cache for pixmaps. More... | |
class | QPlainTextDocumentLayout |
The QPlainTextDocumentLayout class implements a plain text layout for QTextDocument More... | |
class | QPlainTextEdit |
The QPlainTextEdit class provides a widget that is used to edit and display plain text. More... | |
class | QPolygon |
The QPolygon class provides a vector of points using integer precision. More... | |
class | QPolygonF |
The QPolygonF class provides a vector of points using floating point precision. More... | |
class | QPrintDialog |
The QPrintDialog class provides a dialog for specifying the printer's configuration. More... | |
class | QPrintEngine |
The QPrintEngine class defines an interface for how QPrinter interacts with a given printing subsystem. More... | |
class | QPrintEngineInternal |
class | QPrintPreviewDialog |
The QPrintPreviewDialog class provides a dialog for previewing and configuring page layouts for printer output. More... | |
class | QPrintPreviewWidget |
The QPrintPreviewWidget class provides a widget for previewing page layouts for printer output. More... | |
class | QPrinter |
The QPrinter class is a paint device that paints on a printer. More... | |
class | QPrinterInfo |
The QPrinterInfo class gives access to information about existing printers. More... | |
class | QProgressBar |
The QProgressBar widget provides a horizontal or vertical progress bar. More... | |
class | QProgressDialog |
The QProgressDialog class provides feedback on the progress of a slow operation. More... | |
class | QProxyModel |
The QProxyModel class provides support for processing data passed between another model and a view. More... | |
class | QProxyStyle |
The QProxyStyle class is a convenience class that simplifies dynamically overriding QStyle elements. More... | |
class | QPushButton |
The QPushButton widget provides a command button. More... | |
class | QQuaternion |
The QQuaternion class represents a quaternion consisting of a vector and scalar. More... | |
class | QRadialGradient |
The QRadialGradient class is used in combination with QBrush to specify a radial gradient brush. More... | |
class | QRadioButton |
The QRadioButton widget provides a radio button with a text label. More... | |
class | QRawFont |
The QRawFont class provides access to a single physical instance of a font. More... | |
class | QRegExpValidator |
The QRegExpValidator class is used to check a string against a regular expression. More... | |
class | QRegion |
The QRegion class specifies a clip region for a painter. More... | |
class | QResizeEvent |
The QResizeEvent class contains event parameters for resize events. More... | |
class | QRubberBand |
The QRubberBand class provides a rectangle or line that can indicate a selection or a boundary. More... | |
class | QScrollArea |
The QScrollArea class provides a scrolling view onto another widget. More... | |
class | QScrollBar |
The QScrollBar widget provides a vertical or horizontal scroll bar. More... | |
class | QSessionManager |
The QSessionManager class provides access to the session manager. More... | |
class | QShortcut |
The QShortcut class is used to create keyboard shortcuts. More... | |
class | QShortcutEvent |
The QShortcutEvent class provides an event which is generated when the user presses a key combination. More... | |
class | QShowEvent |
The QShowEvent class provides an event that is sent when a widget is shown. More... | |
class | QSizeGrip |
The QSizeGrip class provides a resize handle for resizing top-level windows. More... | |
class | QSizePolicy |
The QSizePolicy class is a layout attribute describing horizontal and vertical resizing policy. More... | |
class | QSlider |
The QSlider widget provides a vertical or horizontal slider. More... | |
class | QSortFilterProxyModel |
The QSortFilterProxyModel class provides support for sorting and filtering data passed between another model and a view. More... | |
class | QSound |
The QSound class provides access to the platform audio facilities. More... | |
class | QSpacerItem |
The QSpacerItem class provides blank space in a layout. More... | |
class | QSpinBox |
The QSpinBox class provides a spin box widget. More... | |
class | QSplashScreen |
The QSplashScreen widget provides a splash screen that can be shown during application startup. More... | |
class | QSplitter |
The QSplitter class implements a splitter widget. More... | |
class | QSplitterHandle |
The QSplitterHandle class provides handle functionality of the splitter. More... | |
class | QStackedLayout |
The QStackedLayout class provides a stack of widgets where only one widget is visible at a time. More... | |
class | QStackedWidget |
The QStackedWidget class provides a stack of widgets where only one widget is visible at a time. More... | |
class | QStandardItem |
The QStandardItem class provides an item for use with the QStandardItemModel class. More... | |
class | QStandardItemModel |
The QStandardItemModel class provides a generic model for storing custom data. More... | |
class | QStaticText |
The QStaticText class enables optimized drawing of text when the text and its layout is updated rarely. More... | |
class | QStatusBar |
The QStatusBar class provides a horizontal bar suitable for presenting status information. More... | |
class | QStatusTipEvent |
The QStatusTipEvent class provides an event that is used to show messages in a status bar. More... | |
class | QStringListModel |
The QStringListModel class provides a model that supplies strings to views. More... | |
class | QStringListModelInternal |
class | QStyle |
class | QStyleInternal |
class | QStyleFactory |
The QStyleFactory class creates QStyle objects. More... | |
class | QStyleFactoryInterface |
class | QStyleFactoryInterfaceInternal |
class | QStyleHintReturn |
The QStyleHintReturn class provides style hints that return more than basic data types. More... | |
class | QStyleHintReturnMask |
The QStyleHintReturnMask class provides style hints that return a QRegion. More... | |
class | QStyleHintReturnVariant |
The QStyleHintReturnVariant class provides style hints that return a QVariant. More... | |
class | QStyleOption |
The QStyleOption class stores the parameters used by QStyle functions. More... | |
class | QStyleOptionButton |
The QStyleOptionButton class is used to describe the parameters for drawing buttons. More... | |
class | QStyleOptionComboBox |
The QStyleOptionComboBox class is used to describe the parameter for drawing a combobox. More... | |
class | QStyleOptionComplex |
The QStyleOptionComplex class is used to hold parameters that are common to all complex controls. More... | |
class | QStyleOptionDockWidget |
The QStyleOptionDockWidget class is used to describe the parameters for drawing a dock widget. More... | |
class | QStyleOptionDockWidgetV2 |
class | QStyleOptionFocusRect |
The QStyleOptionFocusRect class is used to describe the parameters for drawing a focus rectangle with QStyle. More... | |
class | QStyleOptionFrame |
The QStyleOptionFrame class is used to describe the parameters for drawing a frame. More... | |
class | QStyleOptionFrameV2 |
The QStyleOptionFrameV2 class is used to describe the parameters necessary for drawing a frame in Qt 4.1 or above. More... | |
class | QStyleOptionFrameV3 |
The QStyleOptionFrameV3 class is used to describe the parameters necessary for drawing a frame in Qt 4.1 or above. More... | |
class | QStyleOptionGraphicsItem |
The QStyleOptionGraphicsItem class is used to describe the parameters needed to draw a QGraphicsItem. More... | |
class | QStyleOptionGroupBox |
The QStyleOptionGroupBox class describes the parameters for drawing a group box. More... | |
class | QStyleOptionHeader |
The QStyleOptionHeader class is used to describe the parameters for drawing a header. More... | |
class | QStyleOptionMenuItem |
The QStyleOptionMenuItem class is used to describe the parameter necessary for drawing a menu item. More... | |
class | QStyleOptionProgressBar |
The QStyleOptionProgressBar class is used to describe the parameters necessary for drawing a progress bar. More... | |
class | QStyleOptionProgressBarV2 |
The QStyleOptionProgressBarV2 class is used to describe the parameters necessary for drawing a progress bar in Qt 4.1 or above. More... | |
class | QStyleOptionRubberBand |
The QStyleOptionRubberBand class is used to describe the parameters needed for drawing a rubber band. More... | |
class | QStyleOptionSizeGrip |
The QStyleOptionSizeGrip class is used to describe the parameter for drawing a size grip. More... | |
class | QStyleOptionSlider |
The QStyleOptionSlider class is used to describe the parameters needed for drawing a slider. More... | |
class | QStyleOptionSpinBox |
The QStyleOptionSpinBox class is used to describe the parameters necessary for drawing a spin box. More... | |
class | QStyleOptionTab |
The QStyleOptionTab class is used to describe the parameters for drawing a tab bar. More... | |
class | QStyleOptionTabBarBase |
The QStyleOptionTabBarBase class is used to describe the base of a tab bar, i.e. the part that the tab bar usually overlaps with. More... | |
class | QStyleOptionTabBarBaseV2 |
The QStyleOptionTabBarBaseV2 class is used to describe the base of a tab bar, i.e. the part that the tab bar usually overlaps with. More... | |
class | QStyleOptionTabV2 |
The QStyleOptionTabV2 class is used to describe the parameters necessary for drawing a tabs in Qt 4.1 or above. More... | |
class | QStyleOptionTabV3 |
The QStyleOptionTabV3 class is used to describe the parameters necessary for drawing a tabs in Qt 4.5 or above. More... | |
class | QStyleOptionTabWidgetFrame |
The QStyleOptionTabWidgetFrame class is used to describe the parameters for drawing the frame around a tab widget. More... | |
class | QStyleOptionTabWidgetFrameV2 |
The QStyleOptionTabWidgetFrameV2 class is used to describe the parameters for drawing the frame around a tab widget. More... | |
class | QStyleOptionTitleBar |
The QStyleOptionTitleBar class is used to describe the parameters for drawing a title bar. More... | |
class | QStyleOptionToolBar |
The QStyleOptionToolBar class is used to describe the parameters for drawing a toolbar. More... | |
class | QStyleOptionToolBox |
The QStyleOptionToolBox class is used to describe the parameters needed for drawing a tool box. More... | |
class | QStyleOptionToolBoxV2 |
The QStyleOptionToolBoxV2 class is used to describe the parameters necessary for drawing a frame in Qt 4.3 or above. More... | |
class | QStyleOptionToolButton |
The QStyleOptionToolButton class is used to describe the parameters for drawing a tool button. More... | |
class | QStyleOptionViewItem |
The QStyleOptionViewItem class is used to describe the parameters used to draw an item in a view widget. More... | |
class | QStyleOptionViewItemV2 |
The QStyleOptionViewItemV2 class is used to describe the parameters necessary for drawing a frame in Qt 4.2 or above. More... | |
class | QStyleOptionViewItemV3 |
The QStyleOptionViewItemV3 class is used to describe the parameters necessary for drawing a frame in Qt 4.3 or above. More... | |
class | QStyleOptionViewItemV4 |
The QStyleOptionViewItemV4 class is used to describe the parameters necessary for drawing a frame in Qt 4.4 or above. More... | |
class | QStylePainter |
class | QStylePlugin |
The QStylePlugin class provides an abstract base for custom QStyle plugins. More... | |
class | QStylePluginInternal |
class | QStyledItemDelegate |
The QStyledItemDelegate class provides display and editing facilities for data items from a model. More... | |
class | QSwipeGesture |
The QSwipeGesture class describes a swipe gesture made by the user. More... | |
class | QSyntaxHighlighterInternal |
class | QSystemTrayIcon |
The QSystemTrayIcon class provides an icon for an application in the system tray. More... | |
class | QTabBar |
The QTabBar class provides a tab bar, e.g. for use in tabbed dialogs. More... | |
class | QTabWidget |
The QTabWidget class provides a stack of tabbed widgets. More... | |
class | QTableView |
The QTableView class provides a default model/view implementation of a table view. More... | |
class | QTableWidget |
The QTableWidget class provides an item-based table view with a default model. More... | |
class | QTableWidgetItem |
The QTableWidgetItem class provides an item for use with the QTableWidget class. More... | |
class | QTableWidgetSelectionRange |
The QTableWidgetSelectionRange class provides a way to interact with selection in a model without using model indexes and a selection model. More... | |
class | QTabletEvent |
The QTabletEvent class contains parameters that describe a Tablet event. More... | |
class | QTapAndHoldGesture |
The QTapAndHoldGesture class describes a tap-and-hold (aka LongTap) gesture made by the user. More... | |
class | QTapGesture |
The QTapGesture class describes a tap gesture made by the user. More... | |
class | QTextBlock |
The QTextBlock class provides a container for text fragments in a QTextDocument. More... | |
class | QTextBlockFormat |
The QTextBlockFormat class provides formatting information for blocks of text in a QTextDocument. More... | |
class | QTextBlockGroup |
The QTextBlockGroup class provides a container for text blocks within a QTextDocument. More... | |
class | QTextBlockUserData |
The QTextBlockUserData class is used to associate custom data with blocks of text. More... | |
class | QTextBrowser |
The QTextBrowser class provides a rich text browser with hypertext navigation. More... | |
class | QTextCharFormat |
The QTextCharFormat class provides formatting information for characters in a QTextDocument. More... | |
class | QTextCursor |
The QTextCursor class offers an API to access and modify QTextDocuments. More... | |
class | QTextDocument |
The QTextDocument class holds formatted text that can be viewed and edited using a QTextEdit. More... | |
class | QTextDocumentFragment |
The QTextDocumentFragment class represents a piece of formatted text from a QTextDocument. More... | |
class | QTextDocumentWriter |
The QTextDocumentWriter class provides a format-independent interface for writing a QTextDocument to files or other devices. More... | |
class | QTextEdit |
The QTextEdit class provides a widget that is used to edit and display both plain and rich text. More... | |
class | QTextFormat |
The QTextFormat class provides formatting information for a QTextDocument. More... | |
class | QTextFragment |
The QTextFragment class holds a piece of text in a QTextDocument with a single QTextCharFormat. More... | |
class | QTextFrame |
The QTextFrame class represents a frame in a QTextDocument. More... | |
class | QTextFrameFormat |
The QTextFrameFormat class provides formatting information for frames in a QTextDocument. More... | |
class | QTextFrameLayoutData |
class | QTextImageFormat |
The QTextImageFormat class provides formatting information for images in a QTextDocument. More... | |
class | QTextInlineObject |
The QTextInlineObject class represents an inline object in a QTextLayout. More... | |
class | QTextItem |
The QTextItem class provides all the information required to draw text in a custom paint engine. More... | |
class | QTextLayout |
The QTextLayout class is used to lay out and render text. More... | |
class | QTextLength |
The QTextLength class encapsulates the different types of length used in a QTextDocument. More... | |
class | QTextLine |
The QTextLine class represents a line of text inside a QTextLayout. More... | |
class | QTextList |
The QTextList class provides a decorated list of items in a QTextDocument. More... | |
class | QTextListFormat |
The QTextListFormat class provides formatting information for lists in a QTextDocument. More... | |
class | QTextObject |
The QTextObject class is a base class for different kinds of objects that can group parts of a QTextDocument together. More... | |
class | QTextObjectInterface |
The QTextObjectInterface class allows drawing of custom text objects in QTextDocuments. More... | |
class | QTextObjectInterfaceInternal |
class | QTextOption |
The QTextOption class provides a description of general rich text properties. More... | |
class | QTextTable |
The QTextTable class represents a table in a QTextDocument. More... | |
class | QTextTableCell |
The QTextTableCell class represents the properties of a cell in a QTextTable. More... | |
class | QTextTableCellFormat |
The QTextTableCellFormat class provides formatting information for table cells in a QTextDocument. More... | |
class | QTextTableFormat |
The QTextTableFormat class provides formatting information for tables in a QTextDocument. More... | |
class | QTileRules |
class | QTimeEdit |
The QTimeEdit class provides a widget for editing times based on the QDateTimeEdit widget. More... | |
class | QToolBar |
The QToolBar class provides a movable panel that contains a set of controls. More... | |
class | QToolBarChangeEvent |
class | QToolBox |
The QToolBox class provides a column of tabbed widget items. More... | |
class | QToolButton |
The QToolButton class provides a quick-access button to commands or options, usually used inside a QToolBar. More... | |
class | QToolTip |
The QToolTip class provides tool tips (balloon help) for any widget. More... | |
class | QTouchEvent |
The QTouchEvent class contains parameters that describe a touch event. More... | |
class | QTransform |
The QTransform class specifies 2D transformations of a coordinate system. More... | |
class | QTreeView |
The QTreeView class provides a default model/view implementation of a tree view. More... | |
class | QTreeWidget |
The QTreeWidget class provides a tree view that uses a predefined tree model. More... | |
class | QTreeWidgetItem |
The QTreeWidgetItem class provides an item for use with the QTreeWidget convenience class. More... | |
class | QTreeWidgetItemIterator |
The QTreeWidgetItemIterator class provides a way to iterate over the items in a QTreeWidget instance. More... | |
class | QUndoCommand |
The QUndoCommand class is the base class of all commands stored on a QUndoStack. More... | |
class | QUndoGroup |
The QUndoGroup class is a group of QUndoStack objects. More... | |
class | QUndoStack |
The QUndoStack class is a stack of QUndoCommand objects. More... | |
class | QUndoView |
The QUndoView class displays the contents of a QUndoStack. More... | |
class | QVBoxLayout |
The QVBoxLayout class lines up widgets vertically. More... | |
class | QValidator |
The QValidator class provides validation of input text. More... | |
class | QValidatorInternal |
class | QVector2D |
The QVector2D class represents a vector or vertex in 2D space. More... | |
class | QVector3D |
The QVector3D class represents a vector or vertex in 3D space. More... | |
class | QVector4D |
The QVector4D class represents a vector or vertex in 4D space. More... | |
class | QWhatsThis |
The QWhatsThis class provides a simple description of any widget, i.e. answering the question "What's This?". More... | |
class | QWhatsThisClickedEvent |
The QWhatsThisClickedEvent class provides an event that can be used to handle hyperlinks in a "What's This?" text. More... | |
class | QWheelEvent |
The QWheelEvent class contains parameters that describe a wheel event. More... | |
class | QWidget |
The QWidget class is the base class of all user interface objects. More... | |
class | QWidgetAction |
The QWidgetAction class extends QAction by an interface for inserting custom widgets into action based containers, such as toolbars. More... | |
class | QWidgetItem |
The QWidgetItem class is a layout item that represents a widget. More... | |
class | QWidgetItemV2 |
class | QWindowStateChangeEvent |
The QWindowStateChangeEvent class provides the window state before a window state change. More... | |
class | QWizard |
The QWizard class provides a framework for wizards. More... | |
class | QWizardPage |
The QWizardPage class is the base class for wizard pages. More... | |
class | QWorkspace |
The QWorkspace widget provides a workspace window that can be used in an MDI application. More... | |
interface | IQMimeSource |
interface | IQGraphicsItem |
interface | IQGraphicsLayoutItem |
interface | IQIconEngineFactoryInterface |
interface | IQIconEngineFactoryInterfaceV2 |
interface | IQImageIOHandlerFactoryInterface |
interface | IQInputContextFactoryInterface |
interface | IQLayoutItem |
interface | IQPictureFormatInterface |
interface | IQStyleFactoryInterface |
interface | IQPaintDevice |
interface | IQAbstractButtonSignals |
interface | IQAbstractItemDelegateSignals |
interface | IQAbstractItemViewSignals |
interface | IQAbstractPageSetupDialogSignals |
interface | IQAbstractPrintDialogSignals |
interface | IQAbstractProxyModelSignals |
interface | IQAbstractScrollAreaSignals |
interface | IQAbstractSliderSignals |
interface | IQAbstractSpinBoxSignals |
interface | IQAbstractTextDocumentLayoutSignals |
interface | IQActionSignals |
interface | IQActionGroupSignals |
interface | IQApplicationSignals |
interface | IQBoxLayoutSignals |
interface | IQButtonGroupSignals |
interface | IQCalendarWidgetSignals |
interface | IQCheckBoxSignals |
interface | IQClipboardSignals |
interface | IQColorDialogSignals |
interface | IQColumnViewSignals |
interface | IQComboBoxSignals |
interface | IQCommandLinkButtonSignals |
interface | IQCommonStyleSignals |
interface | IQCompleterSignals |
interface | IQDataWidgetMapperSignals |
interface | IQDateEditSignals |
interface | IQDateTimeEditSignals |
interface | IQDesktopWidgetSignals |
interface | IQDialSignals |
interface | IQDialogSignals |
interface | IQDialogButtonBoxSignals |
interface | IQDirModelSignals |
interface | IQDockWidgetSignals |
interface | IQDoubleSpinBoxSignals |
interface | IQDoubleValidatorSignals |
interface | IQDragSignals |
interface | IQErrorMessageSignals |
interface | IQFileDialogSignals |
interface | IQFileSystemModelSignals |
interface | IQFocusFrameSignals |
interface | IQFontComboBoxSignals |
interface | IQFontDialogSignals |
interface | IQFormLayoutSignals |
interface | IQFrameSignals |
interface | IQGestureSignals |
interface | IQGraphicsAnchorSignals |
interface | IQGraphicsBlurEffectSignals |
interface | IQGraphicsColorizeEffectSignals |
interface | IQGraphicsDropShadowEffectSignals |
interface | IQGraphicsEffectSignals |
interface | IQGraphicsItemAnimationSignals |
interface | IQGraphicsObjectSignals |
interface | IQGraphicsOpacityEffectSignals |
interface | IQGraphicsProxyWidgetSignals |
interface | IQGraphicsRotationSignals |
interface | IQGraphicsScaleSignals |
interface | IQGraphicsSceneSignals |
interface | IQGraphicsTextItemSignals |
interface | IQGraphicsTransformSignals |
interface | IQGraphicsViewSignals |
interface | IQGraphicsWidgetSignals |
interface | IQGridLayoutSignals |
interface | IQGroupBoxSignals |
interface | IQHBoxLayoutSignals |
interface | IQHeaderViewSignals |
interface | IQIconEnginePluginSignals |
interface | IQIconEnginePluginV2Signals |
interface | IQImageIOPluginSignals |
interface | IQInputContextSignals |
interface | IQInputContextPluginSignals |
interface | IQInputDialogSignals |
interface | IQIntValidatorSignals |
interface | IQItemDelegateSignals |
interface | IQItemSelectionModelSignals |
interface | IQKeyEventTransitionSignals |
interface | IQLCDNumberSignals |
interface | IQLabelSignals |
interface | IQLayoutSignals |
interface | IQLineEditSignals |
interface | IQListViewSignals |
interface | IQListWidgetSignals |
interface | IQMainWindowSignals |
interface | IQMdiAreaSignals |
interface | IQMdiSubWindowSignals |
interface | IQMenuSignals |
interface | IQMenuBarSignals |
interface | IQMessageBoxSignals |
interface | IQMouseEventTransitionSignals |
interface | IQMovieSignals |
interface | IQPageSetupDialogSignals |
interface | IQPanGestureSignals |
interface | IQPictureFormatPluginSignals |
interface | IQPinchGestureSignals |
interface | IQPlainTextDocumentLayoutSignals |
interface | IQPlainTextEditSignals |
interface | IQPrintDialogSignals |
interface | IQPrintPreviewDialogSignals |
interface | IQPrintPreviewWidgetSignals |
interface | IQProgressBarSignals |
interface | IQProgressDialogSignals |
interface | IQProxyModelSignals |
interface | IQProxyStyleSignals |
interface | IQPushButtonSignals |
interface | IQRadioButtonSignals |
interface | IQRegExpValidatorSignals |
interface | IQRubberBandSignals |
interface | IQScrollAreaSignals |
interface | IQScrollBarSignals |
interface | IQSessionManagerSignals |
interface | IQShortcutSignals |
interface | IQSizeGripSignals |
interface | IQSliderSignals |
interface | IQSortFilterProxyModelSignals |
interface | IQSoundSignals |
interface | IQSpinBoxSignals |
interface | IQSplashScreenSignals |
interface | IQSplitterSignals |
interface | IQSplitterHandleSignals |
interface | IQStackedLayoutSignals |
interface | IQStackedWidgetSignals |
interface | IQStandardItemModelSignals |
interface | IQStatusBarSignals |
interface | IQStringListModelSignals |
interface | IQStyleSignals |
interface | IQStylePluginSignals |
interface | IQStyledItemDelegateSignals |
interface | IQSwipeGestureSignals |
interface | IQSyntaxHighlighterSignals |
interface | IQSystemTrayIconSignals |
interface | IQTabBarSignals |
interface | IQTabWidgetSignals |
interface | IQTableViewSignals |
interface | IQTableWidgetSignals |
interface | IQTapAndHoldGestureSignals |
interface | IQTapGestureSignals |
interface | IQTextBlockGroupSignals |
interface | IQTextBrowserSignals |
interface | IQTextDocumentSignals |
interface | IQTextEditSignals |
interface | IQTextFrameSignals |
interface | IQTextListSignals |
interface | IQTextObjectSignals |
interface | IQTextTableSignals |
interface | IQTimeEditSignals |
interface | IQToolBarSignals |
interface | IQToolBoxSignals |
interface | IQToolButtonSignals |
interface | IQTreeViewSignals |
interface | IQTreeWidgetSignals |
interface | IQUndoGroupSignals |
interface | IQUndoStackSignals |
interface | IQUndoViewSignals |
interface | IQVBoxLayoutSignals |
interface | IQValidatorSignals |
interface | IQWidgetSignals |
interface | IQWidgetActionSignals |
interface | IQWizardSignals |
interface | IQWizardPageSignals |
interface | IQWorkspaceSignals |
Typedefs | |
using | spinBox = qobject_cast < |
using | staticInterceptor = new SmokeInvocation(typeof(QSyntaxHighlighter), null) |
Functions | |
</para > *< para > | [instance initializer] |
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI. | |
</para > *< para > QStyle gets all the information it needs to render the graphical element from QStyleOption.The widget is passed as the last argument in case the style needs it to perform special | effects (such as animated default buttons on Mac OS X) |
</para > *< para > QStyle gets all the information it needs to render the graphical element from QStyleOption.The widget is passed as the last argument in case the style needs it to perform special but it isn t mandatory.In you can use QStyle to draw on any paint not just by setting the QPainter properly.</para > * < para > QStyleOption has various subclasses for the various types of graphical elements that can be drawn.For PE_FrameFocusRect expects a QStyleOptionFocusRect argument.</para > *< para > To ensure that drawing operations are as fast as QStyleOption and its subclasses have data members.See the QStyleOption class documentation for details on how to use it</para > * < para > For Qt provides the QStylePainter which combines a a and a QWidget.This makes it possible to write</para > * < para > QStylePainter | painter (this) |
</para > *< para >...</para > * < para > painter. | drawPrimitive (QStyle::PE_FrameFocusRect, option) |
</para > *< para >...</para > * < para > | style ()-> |
drawPrimitive (QStyle::PE_FrameFocusRect,&option,&painter, this) | |
</para > *< para ></para > * < para > Creating a Custom Style</para > *< para > You can create a custom look and feel for your application by creating a custom style.There are two approaches to creating a custom style.In static the you either choose an existing QStyle subclass and virtual reimplement functions to provide the custom or you create an entire QStyle class from scratch In the dynamic approach you modify the behavior of your system style at runtime The static approach is described below The dynamic approach is described in QProxyStyle</para > *< para > The first step in static the approach is to pick one of the styles provided by Qt from which you will build your custom style.Your choice of QStyle class will depend on which style resembles your desired style the most The most general class that you can use as a base is | QCommonStyle (not QStyle).This is because Qt requires its styles to be QCommonStyles.</para > *< para >Depending on which parts of the base style you want to change |
</para > *< para ></para > * < para > | if (option->state &State_Enabled) |
setPen (option->palette.buttonText().color()) | |
setBrush (option->palette.mid()) | |
drawPolygon (points) | |
</para > *< para > | if (spinBox) |
save () | |
rect. | topLeft () |
rect. | topRight () |
</para > *< para > QLinearGradient | backgroundGradient (topLeft, bottomRight) |
</para > *< para > backgroundGradient. | setColorAt (0.0, QColor(Qt::yellow).lighter(190)) |
</para > *< para > backgroundGradient. | setColorAt (1.0, Qt::white) |
fillRect (option->rect, QBrush(backgroundGradient)) | |
restore () | |
</para > *< para > option. | initFrom (this) |
multiline comments.To deal with these cases it is necessary to know the end state of the previous text | block (e.g."in comment ").</para > *< para >Inside your highlightBlock() implementation you can query the end state of the previous text block using the previousBlockState() function.After parsing the block you can save the last state using setCurrentBlockState().</para > *< para >The currentBlockState() and previousBlockState() functions return an int value.If no state is set |
The QSyntaxHighlighter class allows you to define syntax highlighting rules, and in addition you can use the class to query a document's current formatting or user data. | |
</para > *< para > multiLineCommentFormat. | setForeground (Qt::red) |
</para > *< para ></para > * < para > | setCurrentBlockState (0) |
</para > *< para > | if (previousBlockState()!=1)</para > *< para > startIndex |
</para > *< para ></para > * < para > | while (startIndex >=0) |
</para > *< para > In the example we first set the current block state to.if the previous block ended within a we higlight from the beginning of the current | block (startIndex=0).Otherwise |
</para > *< para > In the example we first set the current block state to.if the previous block ended within a we higlight from the beginning of the current we search for the given start expression.If the specified end expression cannot be found in the text we change the current block state by calling | setCurrentBlockState () |
QSyntaxHighlighter (System.Type dummy) | |
QSyntaxHighlighter (QObject parent) | |
| |
QSyntaxHighlighter (QTextDocument parent) | |
| |
QSyntaxHighlighter (QTextEdit parent) | |
| |
override void | CreateProxy () |
new QTextBlock | CurrentBlock () |
| |
new QTextCharFormat | Format (int pos) |
| |
new int | PreviousBlockState () |
| |
new void | Rehighlight () |
| |
new void | RehighlightBlock (QTextBlock block) |
| |
new void | SetFormat (int start, int count, QTextCharFormat format) |
| |
new void | SetFormat (int start, int count, QColor color) |
| |
new void | SetFormat (int start, int count, QFont font) |
| |
static string | Tr (string s, string c=null) |
static string | Tr (string s, string c, int n) |
static string | TrUtf8 (string s, string c=null) |
static string | TrUtf8 (string s, string c, int n) |
~QSyntaxHighlighter () | |
| |
new void | Dispose () |
Variables | |
</para > *< para > QStyle gets all the information it needs to render the graphical element from QStyleOption.The widget is passed as the last argument in case the style needs it to perform special but it isn t mandatory.In | fact |
</para > *< para > QStyle gets all the information it needs to render the graphical element from QStyleOption.The widget is passed as the last argument in case the style needs it to perform special but it isn t mandatory.In you can use QStyle to draw on any paint | device |
</para > *< para > QStyle gets all the information it needs to render the graphical element from QStyleOption.The widget is passed as the last argument in case the style needs it to perform special but it isn t mandatory.In you can use QStyle to draw on any paint not just | widgets |
</para > *< para > QStyle gets all the information it needs to render the graphical element from QStyleOption.The widget is passed as the last argument in case the style needs it to perform special but it isn t mandatory.In you can use QStyle to draw on any paint not just by setting the QPainter properly.</para > * < para > QStyleOption has various subclasses for the various types of graphical elements that can be drawn.For | example |
</para > *< para > QStyle gets all the information it needs to render the graphical element from QStyleOption.The widget is passed as the last argument in case the style needs it to perform special but it isn t mandatory.In you can use QStyle to draw on any paint not just by setting the QPainter properly.</para > * < para > QStyleOption has various subclasses for the various types of graphical elements that can be drawn.For PE_FrameFocusRect expects a QStyleOptionFocusRect argument.</para > *< para > To ensure that drawing operations are as fast as | possible |
</para > *< para > QStyle gets all the information it needs to render the graphical element from QStyleOption.The widget is passed as the last argument in case the style needs it to perform special but it isn t mandatory.In you can use QStyle to draw on any paint not just by setting the QPainter properly.</para > * < para > QStyleOption has various subclasses for the various types of graphical elements that can be drawn.For PE_FrameFocusRect expects a QStyleOptionFocusRect argument.</para > *< para > To ensure that drawing operations are as fast as QStyleOption and its subclasses have data members.See the QStyleOption class documentation for details on how to use it</para > * < para > For | convenience |
</para > *< para > QStyle gets all the information it needs to render the graphical element from QStyleOption.The widget is passed as the last argument in case the style needs it to perform special but it isn t mandatory.In you can use QStyle to draw on any paint not just by setting the QPainter properly.</para > * < para > QStyleOption has various subclasses for the various types of graphical elements that can be drawn.For PE_FrameFocusRect expects a QStyleOptionFocusRect argument.</para > *< para > To ensure that drawing operations are as fast as QStyleOption and its subclasses have data members.See the QStyleOption class documentation for details on how to use it</para > * < para > For Qt provides the QStylePainter | class |
</para > *< para > QStyle gets all the information it needs to render the graphical element from QStyleOption.The widget is passed as the last argument in case the style needs it to perform special but it isn t mandatory.In you can use QStyle to draw on any paint not just by setting the QPainter properly.</para > * < para > QStyleOption has various subclasses for the various types of graphical elements that can be drawn.For PE_FrameFocusRect expects a QStyleOptionFocusRect argument.</para > *< para > To ensure that drawing operations are as fast as QStyleOption and its subclasses have data members.See the QStyleOption class documentation for details on how to use it</para > * < para > For Qt provides the QStylePainter which combines a | QStyle |
</para > *< para > QStyle gets all the information it needs to render the graphical element from QStyleOption.The widget is passed as the last argument in case the style needs it to perform special but it isn t mandatory.In you can use QStyle to draw on any paint not just by setting the QPainter properly.</para > * < para > QStyleOption has various subclasses for the various types of graphical elements that can be drawn.For PE_FrameFocusRect expects a QStyleOptionFocusRect argument.</para > *< para > To ensure that drawing operations are as fast as QStyleOption and its subclasses have data members.See the QStyleOption class documentation for details on how to use it</para > * < para > For Qt provides the QStylePainter which combines a a | QPainter |
</para > *< para ></para > * < para > Creating a Custom Style</para > *< para > You can create a custom look and feel for your application by creating a custom style.There are two approaches to creating a custom style.In static the | approach |
</para > *< para ></para > * < para > Creating a Custom Style</para > *< para > You can create a custom look and feel for your application by creating a custom style.There are two approaches to creating a custom style.In static the you either choose an existing QStyle subclass | it |
</para > *< para ></para > * < para > Creating a Custom Style</para > *< para > You can create a custom look and feel for your application by creating a custom style.There are two approaches to creating a custom style.In static the you either choose an existing QStyle subclass and virtual reimplement functions to provide the custom | behavior |
</para > *< para ></para > * < para > Creating a Custom Style</para > *< para > You can create a custom look and feel for your application by creating a custom style.There are two approaches to creating a custom style.In static the you either choose an existing QStyle subclass and virtual reimplement functions to provide the custom or you create an entire QStyle class from scratch In the dynamic approach you modify the behavior of your system style at runtime The static approach is described below The dynamic approach is described in QProxyStyle</para > *< para > The first step in static the approach is to pick one of the styles provided by Qt from which you will build your custom style.Your choice of QStyle class will depend on which style resembles your desired style the most The most general class that you can use as a base is you must reimplement the functions that are used to draw those parts of the interface.To illustrate | this[0] = QPoint(x, y + h) |
</para > *< para > | points [1] = QPoint(x + w, y + h) |
</para > *< para > painter & | gt |
</para > *< para ></para > * < para > Notice that we don t use the widget | argument |
</para > *< para ></para > * < para > Notice that we don t use the widget except to pass it on to the the information about what is to be drawn and how it should be drawn is specified by a QStyleOption | object |
</para > *< para ></para > * < para > Notice that we don t use the widget except to pass it on to the the information about what is to be drawn and how it should be drawn is specified by a QStyleOption so there is no need to ask the widget.</para > *< para > If you need to use the widget argument to obtain additional | information |
widget | |
</para > *< para > When implementing a custom | style |
</para > *< para > You can call but by calling it before the | constructor |
</para > *< para > You can call but by calling it before the you ensure that the user s | preference |
</para > *< para ></para > * < para > QPoint | topLeft = option-> |
</para > *< para > QPoint | bottomRight = option-> |
</para > *< para > | break |
</para > *< para ></para > * < para > | default |
</para > *< para ></para > * < para > | option |
</para > *< para ></para > * < para > | painter |
</para > *< para ></para > * < para > The primitive element PE_PanelItemViewItem is responsible for painting the background of | items |
</para > *< para ></para > * < para > The primitive element PE_PanelItemViewItem is responsible for painting the background of and is called from QCommonStyle s implementation of CE_ItemViewItem.</para > * < para > To add support for drawing of new datatypes and item data | roles |
</para > *< para ></para > * < para > The primitive element PE_PanelItemViewItem is responsible for painting the background of and is called from QCommonStyle s implementation of CE_ItemViewItem.</para > * < para > To add support for drawing of new datatypes and item data it is necessary to create a custom delegate.But if you only need to support the datatypes implemented by the default | delegate |
</para > *< para ></para > * < para > The primitive element PE_PanelItemViewItem is responsible for painting the background of and is called from QCommonStyle s implementation of CE_ItemViewItem.</para > * < para > To add support for drawing of new datatypes and item data it is necessary to create a custom delegate.But if you only need to support the datatypes implemented by the default a custom style does not need an accompanying delegate.The QStyledItemDelegate class description gives more information on custom delegates</para > *< para > The drawing of item view headers is also done by the giving control over size of header items and row and column sizes.</para > *< para > </para > *< para > See also | QStyleOption |
</para > *< para ></para > * < para > The primitive element PE_PanelItemViewItem is responsible for painting the background of and is called from QCommonStyle s implementation of CE_ItemViewItem.</para > * < para > To add support for drawing of new datatypes and item data it is necessary to create a custom delegate.But if you only need to support the datatypes implemented by the default a custom style does not need an accompanying delegate.The QStyledItemDelegate class description gives more information on custom delegates</para > *< para > The drawing of item view headers is also done by the giving control over size of header items and row and column sizes.</para > *< para > </para > *< para > See also | QStylePainter |
</para > *< para ></para > * < para > The primitive element PE_PanelItemViewItem is responsible for painting the background of and is called from QCommonStyle s implementation of CE_ItemViewItem.</para > * < para > To add support for drawing of new datatypes and item data it is necessary to create a custom delegate.But if you only need to support the datatypes implemented by the default a custom style does not need an accompanying delegate.The QStyledItemDelegate class description gives more information on custom delegates</para > *< para > The drawing of item view headers is also done by the giving control over size of header items and row and column sizes.</para > *< para > </para > *< para > See also Styles | Example |
</para > *< para ></para > * < para > The primitive element PE_PanelItemViewItem is responsible for painting the background of and is called from QCommonStyle s implementation of CE_ItemViewItem.</para > * < para > To add support for drawing of new datatypes and item data it is necessary to create a custom delegate.But if you only need to support the datatypes implemented by the default a custom style does not need an accompanying delegate.The QStyledItemDelegate class description gives more information on custom delegates</para > *< para > The drawing of item view headers is also done by the giving control over size of header items and row and column sizes.</para > *< para > </para > *< para > See also Styles Styles and Style Aware | Widgets |
</para > *< para > option. | backgroundColor = palette().color(QPalette::Background) |
in comment & | quot |
__pad0__ | |
</para > *< para ></para > * < para > int | startIndex = 0 |
</para > *< para > In the example | above |
</para > *< para > In the example we first set the current block state to. | Then |
</para > *< para > In the example we first set the current block state to.if the previous block ended within a | comment |
</para > *< para > In the example we first set the current block state to.if the previous block ended within a we higlight from the beginning of the current we search for the given start expression.If the specified end expression cannot be found in the text | block |
| |
using QtGui.spinBox = typedef qobject_cast< |
using QtGui.staticInterceptor = typedef new SmokeInvocation(typeof(QSyntaxHighlighter), null) |
enum QtGui.QtMsgType |
</para> *<para> QtGui.[instance initializer] | ( | ) |
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI.
The QStylePainter class is a convenience class for drawing QStyle elements inside a widget.
Qt contains a set of QStyle subclasses that emulate the styles of the different platforms supported by Qt (QWindowsStyle, QMacStyle, QMotifStyle, etc.). By default, these styles are built into the QtGui library. Styles can also be made available as plugins.
Qt's built-in widgets use QStyle to perform nearly all of their drawing, ensuring that they look exactly like the equivalent native widgets. The diagram below shows a QComboBox in eight different styles.
Topics:
Setting a Style
The style of the entire application can be set using the QApplication::setStyle() function. It can also be specified by the user of the application, using the -style command-line option:
./myapplication -style motif
If no style is specified, Qt will choose the most appropriate style for the user's platform or desktop environment.
A style can also be set on an individual widget using the QWidget::setStyle() function.
Developing Style-Aware Custom Widgets
If you are developing custom widgets and want them to look good on all platforms, you can use QStyle functions to perform parts of the widget drawing, such as drawItemText(), drawItemPixmap(), drawPrimitive(), drawControl(), and drawComplexControl().
Most QStyle draw functions take four arguments:
an enum value specifying which graphical element to draw
a QStyleOption specifying how and where to render that element
a QPainter that should be used to draw the element
a QWidget on which the drawing is performed (optional)
For example, if you want to draw a focus rectangle on your widget, you can write:
void MyWidget::paintEvent(QPaintEvent * /* event
QStylePainter extends QPainter with a set of high-level draw...() functions implemented on top of QStyle's API. The advantage of using QStylePainter is that the parameter lists get considerably shorter. Whereas a QStyle object must be able to draw on any widget using any painter (because the application normally has one QStyle object shared by all widget), a QStylePainter is initialized with a widget, eliminating the need to specify the QWidget, the QPainter, and the QStyle for every function call.
Example using QStyle directly:
void MyWidget::paintEvent(QPaintEvent * /* event
</para> *<para> QLinearGradient QtGui.backgroundGradient | ( | topLeft | , |
bottomRight | |||
) |
multiline comments.To deal with these cases it is necessary to know the end state of the previous text QtGui.block | ( | e.g."in comment " | ) |
The QSyntaxHighlighter class allows you to define syntax highlighting rules, and in addition you can use the class to query a document's current formatting or user data.
The QSyntaxHighlighter class is a base class for implementing QTextEdit syntax highlighters. A syntax highligher automatically highlights parts of the text in a QTextEdit, or more generally in a QTextDocument. Syntax highlighters are often used when the user is entering text in a specific format (for example source code) and help the user to read the text and identify syntax errors.
To provide your own syntax highlighting, you must subclass QSyntaxHighlighter and reimplement highlightBlock().
When you create an instance of your QSyntaxHighlighter subclass, pass it the QTextEdit or QTextDocument that you want the syntax highlighting to be applied to. For example:
QTextEdit editor = new QTextEdit;
MyHighlighter *highlighter = new MyHighlighter(editor->document());
After this your highlightBlock() function will be called automatically whenever necessary. Use your highlightBlock() function to apply formatting (e.g. setting the font and color) to the text that is passed to it. QSyntaxHighlighter provides the setFormat() function which applies a given QTextCharFormat on the current text block. For example:
void MyHighlighter::highlightBlock(const QString &text)
{
QTextCharFormat myClassFormat;
myClassFormat.setFontWeight(QFont::Bold);
myClassFormat.setForeground(Qt::darkMagenta);
QString pattern = "\\bMy[A-Za-z]+\\b";
QRegExp expression(pattern);
int index = text.indexOf(expression);
while (index >= 0) {
int length = expression.matchedLength();
setFormat(index, length, myClassFormat);
index = text.indexOf(expression, index + length);
}
}
Some syntaxes can have constructs that span several text blocks. For example, a C++ syntax highlighter should be able to cope with /...
Highlights the given text block. This function is called when necessary by the rich text engine, i.e. on text blocks which have changed.
To provide your own syntax highlighting, you must subclass QSyntaxHighlighter and reimplement highlightBlock(). In your reimplementation you should parse the block's text and call setFormat() as often as necessary to apply any font and color changes that you require. For example:
void MyHighlighter::highlightBlock(const QString &text)
{
QTextCharFormat myClassFormat;
myClassFormat.setFontWeight(QFont::Bold);
myClassFormat.setForeground(Qt::darkMagenta);
QString pattern = "\\bMy[A-Za-z]+\\b";
QRegExp expression(pattern);
int index = text.indexOf(expression);
while (index >= 0) {
int length = expression.matchedLength();
setFormat(index, length, myClassFormat);
index = text.indexOf(expression, index + length);
}
}
Some syntaxes can have constructs that span several text blocks. For example, a C++ syntax highlighter should be able to cope with /*...
</para> *<para> In the example we first set the current block state to.if the previous block ended within a we higlight from the beginning of the current QtGui.block | ( | startIndex | = 0 | ) |
override void QtGui.CreateProxy | ( | ) |
|
protected |
Returns the current text block.
This function was introduced in Qt 4.4.
new void QtGui.Dispose | ( | ) |
QtGui.drawPolygon | ( | points | ) |
</para > *< para ></para > *< para > painter QtGui.drawPrimitive | ( | QStyle::PE_FrameFocusRect | , |
option | |||
) |
QtGui.drawPrimitive | ( | QStyle::PE_FrameFocusRect | , |
& | option, | ||
& | painter, | ||
this | |||
) |
</para> *<para> QStyle gets all the information it needs to render the graphical element from QStyleOption.The widget is passed as the last argument in case the style needs it to perform special QtGui.effects | ( | such as animated default buttons on Mac OS | X | ) |
QtGui.fillRect | ( | option-> | rect, |
QBrush(backgroundGradient) | |||
) |
|
protected |
Returns the format at position inside the syntax highlighter's current text block.
See also setFormat().
</para> *<para></para> *<para> QtGui.if | ( | option->state & | State_Enabled | ) |
</para> *<para> QtGui.if | ( | spinBox | ) |
</para> *<para> QtGui.if | ( | previousBlockState()! | = 1 | ) |
</para> *<para> option. QtGui.initFrom | ( | this | ) |
</para> *<para> QStyle gets all the information it needs to render the graphical element from QStyleOption.The widget is passed as the last argument in case the style needs it to perform special but it isn t mandatory.In you can use QStyle to draw on any paint not just by setting the QPainter properly.</para> *<para> QStyleOption has various subclasses for the various types of graphical elements that can be drawn.For PE_FrameFocusRect expects a QStyleOptionFocusRect argument.</para> *<para> To ensure that drawing operations are as fast as QStyleOption and its subclasses have data members.See the QStyleOption class documentation for details on how to use it</para>*<para> For Qt provides the QStylePainter which combines a a and a QWidget.This makes it possible to write</para>*<para> QStylePainter QtGui.painter | ( | this | ) |
|
protected |
Returns the end state of the text block previous to the syntax highlighter's current block. If no value was previously set, the returned value is -1.
See also highlightBlock() and setCurrentBlockState().
|
static |
|
protected |
QtGui.QSyntaxHighlighter | ( | QObject | parent | ) |
Constructs a QSyntaxHighlighter with the given parent.
QtGui.QSyntaxHighlighter | ( | QTextDocument | parent | ) |
Constructs a QSyntaxHighlighter and installs it on parent. The specified QTextDocument also becomes the owner of the QSyntaxHighlighter.
QtGui.QSyntaxHighlighter | ( | QTextEdit | parent | ) |
Constructs a QSyntaxHighlighter and installs it on parent 's QTextDocument. The specified QTextEdit also becomes the owner of the QSyntaxHighlighter.
new void QtGui.Rehighlight | ( | ) |
Reapplies the highlighting to the whole document.
This function was introduced in Qt 4.2.
See also rehighlightBlock().
new void QtGui.RehighlightBlock | ( | QTextBlock | block | ) |
Reapplies the highlighting to the given QTextBlock block.
This function was introduced in Qt 4.6.
See also rehighlight().
QtGui.restore | ( | ) |
QtGui.save | ( | ) |
QtGui.setBrush | ( | option->palette. | mid() | ) |
</para> *<para> backgroundGradient. QtGui.setColorAt | ( | 0. | 0, |
QColor(Qt::yellow).lighter(190) | |||
) |
</para> *<para> backgroundGradient. QtGui.setColorAt | ( | 1. | 0, |
Qt::white | |||
) |
</para> *<para></para> *<para> QtGui.setCurrentBlockState | ( | 0 | ) |
</para> *<para> In the example we first set the current block state to.if the previous block ended within a we higlight from the beginning of the current we search for the given start expression.If the specified end expression cannot be found in the text we change the current block state by calling QtGui.setCurrentBlockState | ( | ) |
</para> *<para> multiLineCommentFormat. QtGui.setForeground | ( | Qt::red | ) |
|
protected |
This function is applied to the syntax highlighter's current text block (i.e. the text that is passed to the highlightBlock() function).
The specified format is applied to the text from the start position for a length of count characters (if count is 0, nothing is done). The formatting properties set in format are merged at display time with the formatting information stored directly in the document, for example as previously set with QTextCursor's functions. Note that the document itself remains unmodified by the format set through this function.
See also format() and highlightBlock().
|
protected |
This is an overloaded function.
The specified color is applied to the current text block from the start position for a length of count characters.
The other attributes of the current text block, e.g. the font and background color, are reset to default values.
See also format() and highlightBlock().
|
protected |
This is an overloaded function.
The specified font is applied to the current text block from the start position for a length of count characters.
The other attributes of the current text block, e.g. the font and background color, are reset to default values.
See also format() and highlightBlock().
QtGui.setPen | ( | option->palette. | buttonText).color( | ) |
</para> *<para> ...</para> *<para> QtGui.style | ( | ) |
rect. QtGui.topLeft | ( | ) |
rect. QtGui.topRight | ( | ) |
|
static |
|
static |
|
static |
|
static |
</para> *<para></para> *<para> QtGui.while | ( | startIndex > | = 0 | ) |
QtGui.~QSyntaxHighlighter | ( | ) |
Destructor. Uninstalls this syntax highlighter from the text document.
QtGui.__pad0__ |
</para> *<para> In the example QtGui.above |
|
static |
</para> *<para></para> *<para> Notice that we don t use the widget QtGui.argument |
</para> *<para> option. QtGui.backgroundColor = palette().color(QPalette::Background) |
|
static |
multiline comments To deal with these cases it is necessary to know the end state of the previous text QtGui.block |
Highlights the given text block. This function is called when necessary by the rich text engine, i.e. on text blocks which have changed.
To provide your own syntax highlighting, you must subclass QSyntaxHighlighter and reimplement highlightBlock(). In your reimplementation you should parse the block's text and call setFormat() as often as necessary to apply any font and color changes that you require. For example:
void MyHighlighter::highlightBlock(const QString &text)
{
QTextCharFormat myClassFormat;
myClassFormat.setFontWeight(QFont::Bold);
myClassFormat.setForeground(Qt::darkMagenta);
QString pattern = "\\bMy[A-Za-z]+\\b";
QRegExp expression(pattern);
int index = text.indexOf(expression);
while (index >= 0) {
int length = expression.matchedLength();
setFormat(index, length, myClassFormat);
index = text.indexOf(expression, index + length);
}
}
Some syntaxes can have constructs that span several text blocks. For example, a C++ syntax highlighter should be able to cope with /*...
</para> *<para> QtGui.break |
</para > *< para ></para > *< para > Creating a Custom Style</para > *< para > You can create a custom look and feel for your application by creating a custom style There are two approaches to creating a custom style In static the you either choose an existing QStyle QtGui.class |
</para> *<para> In the example we first set the current block state to.if the previous block ended within a QtGui.comment |
</para> *<para> You can call but by calling it before the QtGui.constructor |
</para> *<para> QStyle gets all the information it needs to render the graphical element from QStyleOption.The widget is passed as the last argument in case the style needs it to perform special but it isn t mandatory.In you can use QStyle to draw on any paint not just by setting the QPainter properly.</para> *<para> QStyleOption has various subclasses for the various types of graphical elements that can be drawn.For PE_FrameFocusRect expects a QStyleOptionFocusRect argument.</para> *<para> To ensure that drawing operations are as fast as QStyleOption and its subclasses have data members.See the QStyleOption class documentation for details on how to use it</para>*<para> For QtGui.convenience |
</para> *<para></para> *<para> QtGui.default |
</para> *<para></para> *<para> The primitive element PE_PanelItemViewItem is responsible for painting the background of and is called from QCommonStyle s implementation of CE_ItemViewItem.</para> *<para> To add support for drawing of new datatypes and item data it is necessary to create a custom delegate.But if you only need to support the datatypes implemented by the default QtGui.delegate |
</para> *<para> QStyle gets all the information it needs to render the graphical element from QStyleOption.The widget is passed as the last argument in case the style needs it to perform special but it isn t mandatory.In you can use QStyle to draw on any paint QtGui.device |
</para> *<para> QStyle gets all the information it needs to render the graphical element from QStyleOption.The widget is passed as the last argument in case the style needs it to perform special but it isn t mandatory.In you can use QStyle to draw on any paint not just by setting the QPainter properly.</para> *<para> QStyleOption has various subclasses for the various types of graphical elements that can be drawn.For QtGui.example |
</para> *<para></para> *<para> The primitive element PE_PanelItemViewItem is responsible for painting the background of and is called from QCommonStyle s implementation of CE_ItemViewItem.</para> *<para> To add support for drawing of new datatypes and item data it is necessary to create a custom delegate.But if you only need to support the datatypes implemented by the default a custom style does not need an accompanying delegate.The QStyledItemDelegate class description gives more information on custom delegates</para>*<para> The drawing of item view headers is also done by the giving control over size of header items and row and column sizes.</para> *<para></para> *<para> See also Styles QtGui.Example |
</para> *<para> QStyle gets all the information it needs to render the graphical element from QStyleOption.The widget is passed as the last argument in case the style needs it to perform special but it isn t mandatory.In QtGui.fact |
</para > *< para ></para > *< para > painter & QtGui.gt |
</para> *<para></para> *<para> Notice that we don t use the widget except to pass it on to the the information about what is to be drawn and how it should be drawn is specified by a QStyleOption so there is no need to ask the widget.</para> *<para> If you need to use the widget argument to obtain additional QtGui.information |
|
static |
</para> *<para></para> *<para> The primitive element PE_PanelItemViewItem is responsible for painting the background of QtGui.items |
</para> *<para></para> *<para> Notice that we don t use the widget except to pass it on to the the information about what is to be drawn and how it should be drawn is specified by a QStyleOption QtGui.object |
</para > *< para ></para > *< para > QStyleOptionFocusRect QtGui.option |
</para > *< para > instead of</para > *< para > QPainter QtGui.painter |
</para > *< para > QtGui.points = QPoint(x + w, y + h) |
</para> *<para> QStyle gets all the information it needs to render the graphical element from QStyleOption.The widget is passed as the last argument in case the style needs it to perform special but it isn t mandatory.In you can use QStyle to draw on any paint not just by setting the QPainter properly.</para> *<para> QStyleOption has various subclasses for the various types of graphical elements that can be drawn.For PE_FrameFocusRect expects a QStyleOptionFocusRect argument.</para> *<para> To ensure that drawing operations are as fast as QtGui.possible |
</para> *<para> You can call but by calling it before the you ensure that the user s QtGui.preference |
</para> *<para> QStyle gets all the information it needs to render the graphical element from QStyleOption.The widget is passed as the last argument in case the style needs it to perform special but it isn t mandatory.In you can use QStyle to draw on any paint not just by setting the QPainter properly.</para> *<para> QStyleOption has various subclasses for the various types of graphical elements that can be drawn.For PE_FrameFocusRect expects a QStyleOptionFocusRect argument.</para> *<para> To ensure that drawing operations are as fast as QStyleOption and its subclasses have data members.See the QStyleOption class documentation for details on how to use it</para>*<para> For Qt provides the QStylePainter which combines a a QtGui.QPainter |
</para> *<para> QStyle gets all the information it needs to render the graphical element from QStyleOption.The widget is passed as the last argument in case the style needs it to perform special but it isn t mandatory.In you can use QStyle to draw on any paint not just by setting the QPainter properly.</para> *<para> QStyleOption has various subclasses for the various types of graphical elements that can be drawn.For PE_FrameFocusRect expects a QStyleOptionFocusRect argument.</para> *<para> To ensure that drawing operations are as fast as QStyleOption and its subclasses have data members.See the QStyleOption class documentation for details on how to use it</para>*<para> For Qt provides the QStylePainter which combines a QtGui.QStyle |
</para> *<para></para> *<para> The primitive element PE_PanelItemViewItem is responsible for painting the background of and is called from QCommonStyle s implementation of CE_ItemViewItem.</para> *<para> To add support for drawing of new datatypes and item data it is necessary to create a custom delegate.But if you only need to support the datatypes implemented by the default a custom style does not need an accompanying delegate.The QStyledItemDelegate class description gives more information on custom delegates</para>*<para> The drawing of item view headers is also done by the giving control over size of header items and row and column sizes.</para> *<para></para> *<para> See also QtGui.QStyleOption |
</para> *<para></para> *<para> The primitive element PE_PanelItemViewItem is responsible for painting the background of and is called from QCommonStyle s implementation of CE_ItemViewItem.</para> *<para> To add support for drawing of new datatypes and item data it is necessary to create a custom delegate.But if you only need to support the datatypes implemented by the default a custom style does not need an accompanying delegate.The QStyledItemDelegate class description gives more information on custom delegates</para>*<para> The drawing of item view headers is also done by the giving control over size of header items and row and column sizes.</para> *<para></para> *<para> See also QtGui.QStylePainter |
in comment & QtGui.quot |
</para> *<para></para> *<para> The primitive element PE_PanelItemViewItem is responsible for painting the background of and is called from QCommonStyle s implementation of CE_ItemViewItem.</para> *<para> To add support for drawing of new datatypes and item data QtGui.roles |
</para> *<para></para> *<para> int QtGui.startIndex = 0 |
</para > *< para ></para > *< para > The primitive element PE_PanelItemViewItem is responsible for painting the background of and is called from QCommonStyle s implementation of CE_ItemViewItem</para > *< para > To add support for drawing of new datatypes and item data it is necessary to create a custom delegate But if you only need to support the datatypes implemented by the default a custom style does not need an accompanying delegate The QStyledItemDelegate class description gives more information on custom delegates</para > *< para > The drawing of item view headers is also done by the QtGui.style |
</para> *<para></para> *<para> Creating a Custom Style</para>*<para> You can create a custom look and feel for your application by creating a custom style.There are two approaches to creating a custom style.In static the you either choose an existing QStyle subclass and virtual reimplement functions to provide the custom or you create an entire QStyle class from scratch In the dynamic approach you modify the behavior of your system style at runtime The static approach is described below The dynamic approach is described in QProxyStyle</para>*<para> The first step in static the approach is to pick one of the styles provided by Qt from which you will build your custom style.Your choice of QStyle class will depend on which style resembles your desired style the most The most general class that you can use as a base is you must reimplement the functions that are used to draw those parts of the interface.To illustrate QtGui.this[0] = QPoint(x, y + h) |
</para > *< para ></para > *< para > QtGui.widget |
</para> *<para> QStyle gets all the information it needs to render the graphical element from QStyleOption.The widget is passed as the last argument in case the style needs it to perform special but it isn t mandatory.In you can use QStyle to draw on any paint not just QtGui.widgets |
</para> *<para></para> *<para> The primitive element PE_PanelItemViewItem is responsible for painting the background of and is called from QCommonStyle s implementation of CE_ItemViewItem.</para> *<para> To add support for drawing of new datatypes and item data it is necessary to create a custom delegate.But if you only need to support the datatypes implemented by the default a custom style does not need an accompanying delegate.The QStyledItemDelegate class description gives more information on custom delegates</para>*<para> The drawing of item view headers is also done by the giving control over size of header items and row and column sizes.</para> *<para></para> *<para> See also Styles Styles and Style Aware QtGui.Widgets |