Hi I have QListWidget and I want to set QListWidgetItem in 2 columns. Can someone help me, how I set it? thanks
Hi I have QListWidget and I want to set QListWidgetItem in 2 columns. Can someone help me, how I set it? thanks
don't get you right:
- if you mean that you want to add the same item twice see the documentation:- if you really want two columns you should use QTableWidget.Warning: A QListWidgetItem can only be added to a QListWidget once. Adding the same QListWidgetItem multiple times to a QListWidget will result in undefined behavior.
QListWidget has only one column. why don't you use QTableWidget insted of QListWidget or use your own model with own view?
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
QTreeWidget can also have multiple columns. I prefer it over QTableWidget because there is less vertical space wasted between the entries.
I want to use QListWidget in two or more columns. why not use QTreeWidget or QTableWidget,because they have no IconMode. how should I do? my email : yunxiaodong@163.com
Last edited by yunxiaodong; 3rd August 2011 at 10:14. Reason: updated contents
Bookmarks