Hi,
Is there any examples of the Properties table as used in Qt Designer ?
Looks like tree widgets added to a table.
Thanks,
Brendan
Hi,
Is there any examples of the Properties table as used in Qt Designer ?
Looks like tree widgets added to a table.
Thanks,
Brendan
Last edited by grantbj74; 17th September 2012 at 05:52.
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.
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.
I worked out that I need to use QtPropertyBrowser.
Downloaded the examples.
Having troubles compiling them with mingw32.
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.
Bookmarks