Bug#531072: libqt4-gui: Widget only receives QTabletEvent if it is top-level widget
Package: libqt4-gui
Version: 4.5.1-2
Severity: normal
When creating a widget via
class Test : public QWidget {
Q_OBJECT
public:
Test(QWidget *parent = 0) : QWidget(parent) {}
protected:
void tabletEvent(QTabletEvent*) { std::cout << "got event\n";}
};
Test *t = new Test;
test->show();
it correctly receives tablet events.
However, when I do:
QWidget *w = new QWidget;
test->setParent(w);
w->show();
my tabletEvent() never gets called. Other event types don't seem to be
affected.
This also breaks the widgets/tablet example in the qt4-demos package.
Regards,
- Christian
Reply to: