Dear visitor, welcome to QtForum.org.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
QlistView without columns
I just jumped from Java to C++ and want to use Qt now.
My intensions are to use a TreeView. I already found out that I have to use the QListView class using the Qt Designer which works real nice, BUT I can't get columns away. I want to use just the tree without any columns, whenever I remove the column(0) or hide the column(0) there is still a column displaying "1"
Could you help me please
Thanks in advance
Hamlet55
You're forced to have at least 1 column it seems, to display your tree.
RE: QlistView without columns
As DaSH said, you have to have one column to display your data. You can hide the header showing columns with header()->hide(). You can also play with stretching attributes.