PDA

View Full Version : QT4: Custom widget for QT Designer



Michiel
12th March 2006, 18:23
I'm sorry if this has been asked before. If it has, please point me to the correct post.

I've created a subclass of QTextEdit, and it already works when I don't use Designer, but use pure code to create my dialogs.

Now, from there, how do I make it so I can use it inside Designer, like any other widget? I already found some things inside the documentation, but I never actually found out how to tell Designer to display it in the toolbox. And a lot of other things were unclear too. Could someone point me to a good tutorial or something?

Thanks!

jacek
12th March 2006, 18:44
If you have a widget plugin, you have to copy it to $QTDIR/plugins/designer (or if you use Qt3, to any directory that Designer looks into).

Michiel
12th March 2006, 19:21
Thanks. That's probably it. :)

gfunk
4th May 2006, 08:46
Is C:\Program Files\Trolltech\Qt VS Integration\plugins
good enough if you are just using the Windows version?

jacek
4th May 2006, 14:35
Is C:\Program Files\Trolltech\Qt VS Integration\plugins
good enough if you are just using the Windows version?
I've never used the VS Integration, but it should be rather C:\...\Qt VS Integration\plugins\designer.