PDA

View Full Version : Add custom QTreeView in VS .NET



wind
4th October 2006, 17:12
I wrote a custom QTreeView and now i need to add it to my design.
The problem is I use VS .NET + Qt integration plugin.

So how to add custom items using VS .NET and Qt?

jpn
4th October 2006, 17:17
Do you mean that you want to use your custom QTreeView in a designed form? If so, put an ordinary QTreeView on the form, open context menu over it and choose "Promote to Custom Widget".

wysota
4th October 2006, 18:03
Or create a widget plugin out of your widget, but that's more compilcated than jpn's solution.

wind
5th October 2006, 17:41
Thanks. "Promote to Custom Widget" is the right way.

wysota
5th October 2006, 18:04
They are both "the right ways". Promoting a widget is just a simpler one (but also doesn't allow you to manipulate distinct features of your custom widget from within Designer).