PDA

View Full Version : What widgets are used in Qt Designer?



grantbj74
17th September 2012, 05:52
Hi,

Is there any examples of the Properties table as used in Qt Designer ?

Looks like tree widgets added to a table.

Thanks,
Brendan

ChrisW67
17th September 2012, 06:39
Yes, sure. The code for the properties table is in the Qt source for Designer. I don't have time to find the specific files: there's no single "property editor" source file.

grantbj74
19th September 2012, 00:18
That Qt Designer code blows my mind.

I started one attempt using a QTreeWidget with two columns.

Currently for some of the Values column, I use a QSpinBox, I would like the spin box buttons etc to disappear when the value isn't selected. Similar to Qt Designer properties. I'm guessing I need to use a QTreeView instead.

For now I will continue trying to workout the Qt Designer properties code. Hopefully my little brain won't explode.

grantbj74
20th September 2012, 04:32
I worked out that I need to use QtPropertyBrowser.

Downloaded the examples.

Having troubles compiling them with mingw32.

grantbj74
27th September 2012, 06:15
I got the examples to compile. I think I had problems before, because I didn't run qmake and make from the "Qt 4.8.1 Command Prompt".

I found there were two sources qtpropertybrowser-2.5_1-opensource.zip and qq18-propertybrowser-code.zip. I managed to get both to work.

I think qtpropertybrowser-2.5_1-opensource.zip is more complete.