Why don't you derive from QGroupBox? You'd have one level of hierarchy less...
Q_PROPERTY is documented. Open Assistant and type in Q_PROPERTY into the index tab.
Why don't you derive from QGroupBox? You'd have one level of hierarchy less...
Q_PROPERTY is documented. Open Assistant and type in Q_PROPERTY into the index tab.
Ishark (26th May 2008)
Right, I'll derive directly from GroupBox.
I've never used assistant and I've installed it. It does indeed document Q_PROPERTY.... is the documentation found there identical to the website?
I'm also having a very weird behaviour with my widget. If I use a GroupBox to group my buttons/labels and redefine mousePressEvent to trap mouse events (not the one on buttons of course) then I never get a single event. If I replace the GroupBox with a Frame then I get the events. Is there some fundamental difference between the two? They used to work the same way in Qt3.
I'll try to derive directly from GroupBox to see if it changes anything.
EDIT: it does, when deriving from GroupBox I get the events as expected.
Last edited by Ishark; 23rd May 2008 at 14:53.
Bookmarks