andytork
5th January 2009, 07:48
Hi,
I am trying to look at building a custom tree/list to display a multicolumn list with the following requirements :-
1) I want to be able to custom draw the row when clicked/selected so as to expand it vertically and add a few buttons under the list data
2) I want to paint the background of rows in alternating colours, not only rows with content, but empty rows all down the control.
Under Windows / MFC I would do this by extending the measureitem etc and adding the controls to the row and use erasebackground to do the colours.
I have looked at numerous samples, scoured many QT forums and have not seen anything similar
Can anyone give me some pointers to how I would go about this, I am new to QT but have lots of GUI experience under windows and heaps of C++
Thanks in advance
Andy
I am trying to look at building a custom tree/list to display a multicolumn list with the following requirements :-
1) I want to be able to custom draw the row when clicked/selected so as to expand it vertically and add a few buttons under the list data
2) I want to paint the background of rows in alternating colours, not only rows with content, but empty rows all down the control.
Under Windows / MFC I would do this by extending the measureitem etc and adding the controls to the row and use erasebackground to do the colours.
I have looked at numerous samples, scoured many QT forums and have not seen anything similar
Can anyone give me some pointers to how I would go about this, I am new to QT but have lots of GUI experience under windows and heaps of C++
Thanks in advance
Andy