|
|||||||||
| 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.core.QObject
com.trolltech.qt.gui.QWidget
com.trolltech.qt.gui.QFrame
com.trolltech.qt.gui.QAbstractScrollArea
com.trolltech.qt.gui.QAbstractItemView
com.trolltech.qt.gui.QColumnView
public class QColumnView
The QColumnView class provides a model/view implementation of a column view. QColumnView displays a model in a number of QListViews, one for each hierarchy in the tree. This is sometimes referred to as a cascading list.
The QColumnView class is one of the Model/View Classes and is part of Qt's model/view framework.
QColumnView implements the interfaces defined by the QAbstractItemView class to allow it to display data provided by models derived from the QAbstractItemModel class.

| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.trolltech.qt.gui.QAbstractItemView |
|---|
QAbstractItemView.CursorAction, QAbstractItemView.DragDropMode, QAbstractItemView.DropIndicatorPosition, QAbstractItemView.EditTrigger, QAbstractItemView.EditTriggers, QAbstractItemView.ScrollHint, QAbstractItemView.ScrollMode, QAbstractItemView.SelectionBehavior, QAbstractItemView.SelectionMode, QAbstractItemView.State |
| Nested classes/interfaces inherited from class com.trolltech.qt.gui.QFrame |
|---|
QFrame.Shadow, QFrame.Shape, QFrame.StyleMask |
| Nested classes/interfaces inherited from class com.trolltech.qt.gui.QWidget |
|---|
QWidget.RenderFlag, QWidget.RenderFlags |
| 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 |
| Field Summary | |
|---|---|
QSignalEmitter.Signal1 |
updatePreviewWidget
This signal is emitted when the preview widget should be updated to provide rich information about index |
| Fields inherited from class com.trolltech.qt.gui.QAbstractItemView |
|---|
activated, clicked, doubleClicked, entered, pressed, viewportEntered |
| Fields inherited from class com.trolltech.qt.gui.QWidget |
|---|
customContextMenuRequested |
| Constructor Summary | |
|---|---|
QColumnView()
Constructs a column view with a parent to represent a model's data. |
|
QColumnView(QWidget parent)
Constructs a column view with a parent to represent a model's data. |
|
| Method Summary | |
|---|---|
java.util.List |
columnWidths()
Returns a list of the width of all the columns in this view. |
protected QAbstractItemView |
createColumn(QModelIndex rootIndex)
To use a custom widget for the final column when you select an item overload this function and return a widget. |
static QColumnView |
fromNativePointer(QNativePointer nativePointer)
|
protected void |
initializeColumn(QAbstractItemView column)
Copies the behavior and options of the column view and applies them to the column such as the iconSize(), textElideMode() and alternatingRowColors(). |
QWidget |
previewWidget()
Returns the preview widget, or 0 if there is none. |
boolean |
resizeGripsVisible()
This property holds the way to specify if the list views gets resize grips or not. |
void |
setColumnWidths(java.util.List list)
Sets the column widths to the values given in the list. |
void |
setPreviewWidget(QWidget widget)
Sets the preview widget. |
void |
setResizeGripsVisible(boolean visible)
This property holds the way to specify if the list views gets resize grips or not. |
| Methods inherited from class com.trolltech.qt.gui.QFrame |
|---|
frameRect, frameShadow, frameShape, frameStyle, frameWidth, lineWidth, midLineWidth, setFrameRect, setFrameShadow, setFrameShape, setFrameStyle, setLineWidth, setMidLineWidth |
| Methods inherited from class com.trolltech.qt.core.QObject |
|---|
childEvent, children, connectSlotsByName, customEvent, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, event, eventFilter, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, indexOfProperty, installEventFilter, isWidgetType, killTimer, moveToThread, objectName, parent, properties, property, removeEventFilter, setObjectName, setParent, setProperty, startTimer, timerEvent, toString, userProperty |
| 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 |
|---|
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.trolltech.qt.QtJambiInterface |
|---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
| Field Detail |
|---|
public final QSignalEmitter.Signal1 updatePreviewWidget
previewWidget().
| Constructor Detail |
|---|
public QColumnView()
setModel() to set the model. QAbstractItemModel.
public QColumnView(QWidget parent)
setModel() to set the model. QAbstractItemModel.
| Method Detail |
|---|
public final java.util.List columnWidths()
setColumnWidths().
protected final void initializeColumn(QAbstractItemView column)
createColumn(). createColumn().
public final QWidget previewWidget()
setPreviewWidget(), and updatePreviewWidget() .
public final boolean resizeGripsVisible()
setRootIndex().
public final void setColumnWidths(java.util.List list)
If list contains too few values, only width of the rest of the columns will not be modified.
columnWidths(), and createColumn().
public final void setPreviewWidget(QWidget widget)
The widget becomes a child of the column view, and will be destroyed when the column area is deleted or when a new widget is set.
previewWidget(), and updatePreviewWidget() .
public final void setResizeGripsVisible(boolean visible)
setRootIndex().
protected QAbstractItemView createColumn(QModelIndex rootIndex)
Return the new view. QColumnView will automatically take ownership of the widget.
setPreviewWidget().
public static QColumnView fromNativePointer(QNativePointer nativePointer)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||