|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.gui.QStyleOption
com.trolltech.qt.gui.QStyleOptionComplex
com.trolltech.qt.gui.QStyleOptionGroupBox
public class QStyleOptionGroupBox
The QStyleOptionGroupBox
class describes the parameters for drawing a group box. QStyleOptionButton
contains all the information that QStyle
functions need the various graphical elements of a group box.
It holds the lineWidth and the midLineWidth for drawing the panel, the group box's title and the title's alignment and color.
For performance reasons, the access to the member variables is direct (i.e., using the . or -> operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.
For an example demonstrating how style options can be used, see the Styles example.
QStyleOption
, QStyleOptionComplex
, and QGroupBox
.
Nested Class Summary | |
---|---|
static class |
QStyleOptionGroupBox.StyleOptionType
This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass. |
static class |
QStyleOptionGroupBox.StyleOptionVersion
This enum is used to hold information about the version of the style option, and is defined for each QStyleOption subclass. |
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QStyleOption |
---|
QStyleOption.OptionType |
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
---|
QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9 |
Constructor Summary | |
---|---|
QStyleOptionGroupBox()
Constructs a QStyleOptionGroupBox , initializing the members variables to their default values. |
|
QStyleOptionGroupBox(QStyleOptionGroupBox other)
Constructs a copy of the other style option. |
Method Summary | |
---|---|
QStyleOptionGroupBox |
clone()
This method is reimplemented for internal reasons |
QStyleOptionFrameV2.FrameFeatures |
features()
This variable holds the features of the group box frame. |
static QStyleOptionGroupBox |
fromNativePointer(QNativePointer nativePointer)
|
int |
lineWidth()
This variable holds the line width for drawing the panel. |
int |
midLineWidth()
This variable holds the mid-line width for drawing the panel. |
static QNativePointer |
nativePointerArray(QStyleOptionGroupBox[] array)
|
void |
setFeatures(QStyleOptionFrameV2.FrameFeatures features)
This variable holds the features of the group box frame. |
void |
setLineWidth(int lineWidth)
This variable holds the line width for drawing the panel. |
void |
setMidLineWidth(int midLineWidth)
This variable holds the mid-line width for drawing the panel. |
void |
setText(java.lang.String text)
This variable holds the text of the group box. |
void |
setTextAlignment(Qt.Alignment textAlignment)
This variable holds the alignment of the group box title. |
void |
setTextColor(QColor textColor)
This variable holds the color of the group box title. |
java.lang.String |
text()
This variable holds the text of the group box. |
Qt.Alignment |
textAlignment()
This variable holds the alignment of the group box title. |
QColor |
textColor()
This variable holds the color of the group box title. |
Methods inherited from class com.trolltech.qt.gui.QStyleOptionComplex |
---|
activeSubControls, nativePointerArray, setActiveSubControls, setSubControls, subControls |
Methods inherited from class com.trolltech.qt.gui.QStyleOption |
---|
direction, fontMetrics, initFrom, nativePointerArray, palette, rect, setDirection, setFontMetrics, setPalette, setRect, setState, setType, setVersion, state, type, version |
Methods inherited from class com.trolltech.qt.QtJambiObject |
---|
dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr |
Methods inherited from class com.trolltech.qt.QSignalEmitter |
---|
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Constructor Detail |
---|
public QStyleOptionGroupBox()
QStyleOptionGroupBox
, initializing the members variables to their default values.
public QStyleOptionGroupBox(QStyleOptionGroupBox other)
Method Detail |
---|
public final void setLineWidth(int lineWidth)
QFrame::lineWidth
.
public final int lineWidth()
QFrame::lineWidth
.
public final void setFeatures(QStyleOptionFrameV2.FrameFeatures features)
QStyleOptionFrameV2::FrameFeature
.
public final QStyleOptionFrameV2.FrameFeatures features()
QStyleOptionFrameV2::FrameFeature
.
public final void setTextAlignment(Qt.Alignment textAlignment)
Qt::AlignLeft
. QGroupBox::alignment
.
public final Qt.Alignment textAlignment()
Qt::AlignLeft
. QGroupBox::alignment
.
public final void setMidLineWidth(int midLineWidth)
QFrame::midLineWidth
.
public final int midLineWidth()
QFrame::midLineWidth
.
public final void setText(java.lang.String text)
QGroupBox::title
.
public final java.lang.String text()
QGroupBox::title
.
public final void setTextColor(QColor textColor)
public final QColor textColor()
public static QStyleOptionGroupBox fromNativePointer(QNativePointer nativePointer)
public static QNativePointer nativePointerArray(QStyleOptionGroupBox[] array)
public QStyleOptionGroupBox clone()
clone
in class QStyleOptionComplex
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |