com.trolltech.qt.gui
Class QStyleOptionGroupBox

java.lang.Object
  extended by com.trolltech.qt.internal.QSignalEmitterInternal
      extended by com.trolltech.qt.QSignalEmitter
          extended by com.trolltech.qt.QtJambiObject
              extended by com.trolltech.qt.gui.QStyleOption
                  extended by com.trolltech.qt.gui.QStyleOptionComplex
                      extended by com.trolltech.qt.gui.QStyleOptionGroupBox
All Implemented Interfaces:
QtJambiInterface, java.lang.Cloneable

public class QStyleOptionGroupBox
extends QStyleOptionComplex
implements java.lang.Cloneable

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.

See also:
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.AbstractSignal, QSignalEmitter.PrivateSignal0, QSignalEmitter.PrivateSignal1, QSignalEmitter.PrivateSignal2, QSignalEmitter.PrivateSignal3, QSignalEmitter.PrivateSignal4, QSignalEmitter.PrivateSignal5, QSignalEmitter.PrivateSignal6, QSignalEmitter.PrivateSignal7, QSignalEmitter.PrivateSignal8, QSignalEmitter.PrivateSignal9, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9
 
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal
 
Field Summary
 
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
currentSender
 
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.
 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.
 void setFeatures(QStyleOptionFrameV2.FrameFeature[] features)
           
 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 setTextAlignment(Qt.AlignmentFlag[] textAlignment)
           
 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, setActiveSubControls, setSubControls, subControls
 
Methods inherited from class com.trolltech.qt.gui.QStyleOption
direction, fontMetrics, initFrom, palette, rect, setDirection, setFontMetrics, setPalette, setRect, setState, 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 com.trolltech.qt.internal.QSignalEmitterInternal
__qt_signalInitialization
 
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

QStyleOptionGroupBox

public QStyleOptionGroupBox()
Constructs a QStyleOptionGroupBox, initializing the members variables to their default values.


QStyleOptionGroupBox

public QStyleOptionGroupBox(QStyleOptionGroupBox other)
Constructs a copy of the other style option.

Method Detail

setLineWidth

public final void setLineWidth(int lineWidth)
This variable holds the line width for drawing the panel. The value of this variable is, currently, always 1.

See also:
QFrame::lineWidth.


lineWidth

public final int lineWidth()
This variable holds the line width for drawing the panel. The value of this variable is, currently, always 1.

See also:
QFrame::lineWidth.


setFeatures

public final void setFeatures(QStyleOptionFrameV2.FrameFeature[] features)

setFeatures

public final void setFeatures(QStyleOptionFrameV2.FrameFeatures features)
This variable holds the features of the group box frame. The frame is flat by default.

See also:
QStyleOptionFrameV2::FrameFeature .


features

public final QStyleOptionFrameV2.FrameFeatures features()
This variable holds the features of the group box frame. The frame is flat by default.

See also:
QStyleOptionFrameV2::FrameFeature .


setTextAlignment

public final void setTextAlignment(Qt.AlignmentFlag[] textAlignment)

setTextAlignment

public final void setTextAlignment(Qt.Alignment textAlignment)
This variable holds the alignment of the group box title. The default value is Qt::AlignLeft .

See also:
QGroupBox::alignment.


textAlignment

public final Qt.Alignment textAlignment()
This variable holds the alignment of the group box title. The default value is Qt::AlignLeft .

See also:
QGroupBox::alignment.


setMidLineWidth

public final void setMidLineWidth(int midLineWidth)
This variable holds the mid-line width for drawing the panel. The mid-line width is usually used when drawing sunken or raised group box frames. The value of this variable is, currently, always 0.

See also:
QFrame::midLineWidth.


midLineWidth

public final int midLineWidth()
This variable holds the mid-line width for drawing the panel. The mid-line width is usually used when drawing sunken or raised group box frames. The value of this variable is, currently, always 0.

See also:
QFrame::midLineWidth.


setText

public final void setText(java.lang.String text)
This variable holds the text of the group box. The default value is an empty string.

See also:
QGroupBox::title.


text

public final java.lang.String text()
This variable holds the text of the group box. The default value is an empty string.

See also:
QGroupBox::title.


setTextColor

public final void setTextColor(QColor textColor)
This variable holds the color of the group box title. The default value is an invalid color with the RGB value (0, 0, 0). An invalid color is a color that is not properly set up for the underlying window system.


textColor

public final QColor textColor()
This variable holds the color of the group box title. The default value is an invalid color with the RGB value (0, 0, 0). An invalid color is a color that is not properly set up for the underlying window system.


clone

public QStyleOptionGroupBox clone()
This method is reimplemented for internal reasons

Overrides:
clone in class QStyleOptionComplex