The Qt documentation in C++ of this class can be read here: http://doc.trolltech.com/4.3/qlistwidget.html
A control for the form object, provides a list of selectable, read-only items.
This is typically a single-column list in which either no item or one item is selected, but it can also be used in many other ways.
Whenever you use Index, KBasic checks if Index is greater equal 1 and smaller equal Length(). If not, the command will not be executed, e.g. You use Insert(10, “test”), but there are only 4 elements yet, the Insert will fail. First element has got Index = 1.
Most important
Please read the control class overview Control as well.
Function Length () As Integer
Sub Sort(Descending As Boolean)
Sub Insert(Index As Integer, Caption As String)
Sub Insert(Index As Integer, Icon As String, Caption As String)
Sub Append(Caption As String)
Sub Append(Icon As String, Caption As String)
Might be a String containing binary data. See the binary project example for using.
Sub Remove(Index As Integer)
Index = 1 means the first entry
Index = 2 means the second entry and so on
Sub RemoveAll()
Sub Select(Index As Integer)
Sub Select(Caption As String)
Searches case-sensitive.
Function Selected() As Integer
Function Caption() As String
Function Index() As Integer
Function Data() As Integer
Function Caption(Index As Integer) As Integer
Sub SetCaption(Index As Integer, Caption As String)
Sub SetIcon(Index As Integer, Icon As String)
Function Tag(Index As Integer) As Integer
Sub SetTag(Index As Integer, Tag As String)
Function CheckState(Index As Integer) As String
Sub SetCheckState(Index As Integer, CheckState As String)
Possible Value | Description |
Unchecked | The item is unchecked. |
PartiallyChecked | The item is partially checked. Items in hierarchical models may be partially checked if some, but not all, of their children are checked. |
Checked | The item is checked. |
Function Flag(Index As Integer) As String
NoItemFlags | It does not have any properties set. |
ItemIsSelectable | It can be selected. |
ItemIsEditable | It can be edited. |
ItemIsDragEnabled | It can be dragged. |
ItemIsDropEnabled | It can be used as a drop target. |
ItemIsUserCheckable | It can be checked or unchecked by the user. |
ItemIsEnabled | The user can interact with the item. |
ItemIsTristate |
Sub SetFlag(Index As Integer, Flag As String)
Sub SetBackground(Index As Integer, ColorId As String)
Sub SetBackground(Index As Integer, ColorId As String, BrushStyle As String)
Possible values for BrushStyle are:
NoBrush, SolidPattern, Dense1Pattern, Dense2Pattern, Dense3Pattern, Dense4Pattern, Dense5Pattern, Dense6Pattern, Dense7Pattern, HorPattern, VerPattern, CrossPattern, BDiagPattern, FDiagPattern, DiagCrossPattern, LinearGradientPattern, ConicalGradientPattern, RadialGradientPattern, TexturePattern
Function IsHidden(Index As Integer) As Boolean
Sub SetHidden(Index As Integer, IsHidden As Boolean)
Function IsSelected(Index As Integer) As Boolean
Sub SetSelected(Index As Integer, IsSelected As Boolean)
Function StatusTip(Index As Integer) As String
Sub SetStatusTip(Index As Integer, StatusTip As String)
Function ToolTip(Index As Integer) As String
Sub SetToolTip(Index As Integer, ToolTip As String)
Function TextAlignment(Index As Integer) As String
Sub SetTextAlignment(Index As Integer, TextAlignment As String)
Possible Value | Description (Qt documentation says) |
AlignLeft | Aligns with the left edge. |
AlignRight | Aligns with the right edge. |
AlignHCenter | Centers horizontally in the available space. |
AlignJustify | Justifies the text in the available space. |
AlignTop | Aligns with the top. |
AlignBottom | Aligns with the bottom. |
AlignVCenter | Centers vertically in the available space. |
AlignCenter | Centers in both dimensions. |
AlignAbsolute | If the widget's layout direction is RightToLeft (instead of LeftToRight, the default), AlignLeft refers to the right edge and AlignRight to the left edge. This is normally the desired behavior. If you want AlignLeft to always mean “left” and AlignRight to always mean “right”, combine the flag with AlignAbsolute. |
AlignLeading | Synonym for AlignLeft. |
AlignTrailing | Synonym for AlignRight. |
AlignHorizontal_Mask | AlignLeft Or AlignRight Or AlignHCenter Or AlignJustify Or AlignAbsolute |
AlignVertical_Mask | AlignTop Or AlignBottom Or AlignVCenter |
not implemented yet: append(strings) insert(integer, strings)
void openEditor ( integer ) closeEditor
# QList<QListWidgetItem *> findItems ( const QString & text, Qt::MatchFlags flags ) const → Integers # # QList<QListWidgetItem *> selectedItems () const → Integers #
# void setCurrentItem ( QListWidgetItem * item, QItemSelectionModel::SelectionFlags command ) #
void ScrollTo(Integer)
setWhatsThis/WhatsThis
SetFontColor
Property Value As String (ReadWrite)
Property OldValue As String (ReadOnly)
Property Sorted As Boolean (ReadWrite)
This property holds whether sorting is enabled.
Property SelectionMode As String (ReadWrite)
Property AlternatingRowColors As Boolean (ReadWrite)
Property Flat As Boolean (ReadWrite)
If it is true, appears as flat control. This is only useful to change the visual appearance.
Implemented since KBasic V1.8.
Property ViewMode As String (ReadWrite)
Possible values are ListMode or IconMode.
not implemented yet:
IconWidth/height(QSize(96, 84)); Movement(QListView::Static); Spacing(12);
Orientation
Sub OnEvent(Index As Integer, Caption As String)
This event is raised, when the user changes the selection.
not implemented yet:
void currentItemChanged ( QListWidgetItem * current, QListWidgetItem * previous )
void currentRowChanged ( int currentRow )
void currentTextChanged ( const QString & currentText )
void itemActivated ( QListWidgetItem * item )
void itemChanged ( QListWidgetItem * item )
void itemClicked ( QListWidgetItem * item )
void itemDoubleClicked ( QListWidgetItem * item )
void itemEntered ( QListWidgetItem * item )
void itemPressed ( QListWidgetItem * item )
void itemSelectionChanged ()
Model Baju Batik Kantor Model Baju Batik 2013 Model Baju Batik Model Baju Batik Pria Model Baju Batik Wanita Model Baju Batik Modern Baju Batik Kerja Dokar Balap Berita Hari Ini Berita Terupdate Kumpulan Berita Baju Batik Sarimbit Baju Batik Terbaru Baju Batik Couple Baju Batik Pasangan Baju Batik Wanita Baju Batik Pria Baju Batik Modern Baju Batik Berita Terkini Berita Terbaru