Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, June 2007
cannot select custom widget on a form in QT Designer


Message 1 in thread

I made a subclass of QTabBar, made a plugin of it, and got it to show up
in the QT Designer's toolbox.  I can drag my custom widget onto a form.
  Then, if I click on the widget on the form, it does not become
selected, as any other widget would.  I can select it only in the Object
Inspector (to change properties etc).  Mouse clicks are passed through
to the widget itself (I can select a different tab on the QTabBar).  So
the question is what am I missing?  When
QDesignerCustomWidgetInterface::createWidget is called, do I need to do
something special to the new widget to make it act differently in the
Designer?

--
 [ signature omitted ]