PDA

View Full Version : QTableWidgetItem dynamic type, how?!



Onanymous
7th May 2010, 19:40
Hi all, I wanted to implement something similar to how for example properties editor works in Designer.
Initially all values seem to reside in simple Qtablewidgetitems (or treeitems, does not matter), but when I activate some cell it turns into combobox or anything else. How is it coded? Help me please!

Lykurg
7th May 2010, 19:58
They use delegates. Just have a look in the code. It's open source... Also have a look at Qt Solutions, I think they have an example as well.

Onanymous
13th May 2010, 13:29
Thank you. Qt solutions provide exactly the class that I needed. BTW I tried to get it from the Designer source, it is not that easy.