[Solved] Mouse grab causes application crash
General and Desktop
3
Posts
1
Posters
3.7k
Views
1
Watching
-
I'm on Qt 4.7.1 on Win XP sp3, and was just trying something, and this code causes my app to crash with this message:
@
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
this->grabMouse();
@@exited with codeASSERT: "testAttribute(Qt::WA_WState_Created)" in file c:\ndkbuildrepos\qt-desktop\src\gui\kernel\qwidget_win.cpp, line 887 3@
Should be pretty straight forward to use mousegrab as I've tried in the past, a bug ... something stupid that I've done?
-
WA_WState_Created ... I should've known :)
Thanks Bradley