PDA

View Full Version : Qt Designer property editor source code



Dwarf007
16th May 2012, 17:19
Hello,

I tried to find the source code of the Qt designer property editor (see attached screenshot 7729).
It seems to be a QTreeView that was extended to support a number of features that I wanted to implement myself:

Can anyone point me to this?

Thanks,
--
Daniel

Dwarf007
24th May 2012, 14:24
Since nobody answered, can anyone point me to how to have different background colors for different branches in a QTreeView as it is the case for example in the Qt designer property editor?

Quasar
24th May 2012, 23:15
Just subclass and reimplement QTreeView::paint()

sapan280
11th October 2012, 11:57
Hello everyone,

I am also looking for the source code for the property editor. After doing some search, I read somewhere that the source code is downloaded with the LGPL licensed Qt, I went through the folder but was not able to find it. If the source code is not available, does anybody know how it was implemented, any Qt command which could read the meta-data or some thing like that from a QObject class. Any update on this thread ?

Sapan
Learning Never Stops
http://learngamedev.com/
http://switchonstudio.com/

wysota
11th October 2012, 12:23
Take a look at QMetaObject class and QObject::metaObject().