[RESOLVED]Is there QListBox class in Qt library?
-
wrote on 22 Nov 2012, 20:21 last edited by
I'm trying to find some widget to display a list of items as simple as MFC CListBox in Qt GUI library, and I found some examples of using QListBox in the internet, but this class does not exist in my Qt installation. QListView, which is just likes MFC CListView, is not what I need. Any one can tell me how to display a list box using Qt? Thanks!
-
wrote on 22 Nov 2012, 21:24 last edited by
QListWidget
http://doc.qt.digia.com/qt/qlistwidget.htmlBut using a QListView with a suitable model is the more elegant solution most of the time :-)
-
wrote on 22 Nov 2012, 21:57 last edited by
Thanks MuldR! It works. One more question: How to mark this post as "Resolved"? :-)
-
wrote on 22 Nov 2012, 21:59 last edited by
[quote author="cyao" date="1353621421"]Thanks MuldR! It works. One more question: How to mark this post as "Resolved"? :-)[/quote]
Edit the first posting and change the thread title accordingly. -
wrote on 22 Nov 2012, 22:31 last edited by
Done. Thanks DerManu!
2/5