You are not logged in.

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.

Hamlet55

Beginner

  • "Hamlet55" is male
  • "Hamlet55" started this thread

Posts: 3

Location: Vienna

  • Send private message

1

Friday, March 5th 2004, 10:40am

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

2

Friday, March 5th 2004, 10:52am

You're forced to have at least 1 column it seems, to display your tree.

mihal

Beginner

  • "mihal" is male

Posts: 33

Location: Slovenia

Occupation: Student

  • Send private message

3

Friday, March 5th 2004, 12:26pm

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.