PDA

View Full Version : simpletreemoddel example



incapacitant
27th March 2006, 12:53
The output of this example given with the distribution would do a perfect widget for my application.

How can I make it a widget ?
edit; Should I use a QTreeWidget ? getting harder

Or should there be a much clever approch ?

zlatko
27th March 2006, 13:51
Look in example src

incapacitant
27th March 2006, 13:55
Look in example src

I look in the source code of the example and it is far from being understood how it does what it does so well. Forinstance once I can integrate it to a layout I want to detect the signal right click on an item and be able to start a special edit.

I am unable from the source to understand how I can make it a widget and then used signals on it.

wysota
27th March 2006, 17:28
Then you should probably read a little more about model-view approach used by Qt. The topic is so big, our answers to your questions here without any knowledge about mechanisms used in this example won't tell you much and you certainly won't learn anything from it.

You should now read about Interview, try to analyse example code, try to implement something on your own and then ask detailed questions about issues which seem unclear to you and then we'll gladly answer them.