[Qt-interest] Same widget in two Designer plugins - problem
André Somers
andre at familiesomers.nl
Fri Sep 30 14:32:25 CEST 2011
Hi,
I have created my own slider widget. I have also developed a designer plugin
for it. That all works nicely. However, as soon as I want to mimick the
behaviour of the way QSlider is integrated into designer, I run into
problems. I would like to have a separate vertical and horizontal slider
item in the list of widgets, but I can not figure out how to do that. If I
put another name than the actual class name in the name() reimplementation,
I get complaints from designer and I do not get a visual widget if I drag &
drop the widget to a form. However, if I use the same name (and just a
different description and icon), I get into other problems: only one of the
sliders is showing.
Am I missing something here? How do the standard widgets manage to use human
readable names (not the class name) for their widgets without issue? Why can
QSlider appear twice, but own slider not?
Andre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110930/d9343fc8/attachment.html
More information about the Qt-interest-old
mailing list