January 20, 2012

pratik041 pratik041
Lab Rat
346 posts

How can we set header for a QListWidget?

  I want to set column header for Qlistwidget.
 Signature 

Pratik Agrawal

2 replies

January 20, 2012

Gerolf Gerolf
Area 51 Engineer
3211 posts

AFAIK, the QListView (which is the base for a QListWidget) does not have a header.
You will have to add it on your own by hand, using e.g. a QHeaderView.

 Signature 

Nokia Certified Qt Specialist.
Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

January 20, 2012

pratik041 pratik041
Lab Rat
346 posts
Gerolf wrote:
AFAIK, the QListView (which is the base for a QListWidget) does not have a header. You will have to add it on your own by hand, using e.g. a QHeaderView.

ok i will try that.

 Signature 

Pratik Agrawal

 
  ‹‹ How can i move Qstandarditem objects from one Qlistview to other by doubleclicking or pressing arrow key?      How to let the QLabel display the differenet QPixmap in a for loop? ››

You must log in to post a reply. Not a member yet? Register here!