Qt-interest Archive, May 2007
Possible 4.3 Beta Bug - QDockWidget Killing My Mouse Pointer on CentOS 4
Message 1 in thread
I'm using CentOS 4.2.6.9 on a VMWare 5.5.1 machine. The code attached
(compiled with Qt 4.3 beta) will make my mouse pointer vanish
eventually if I grab the bottom corner of the app and keep resizing
the application (occasionally my finger will slip and I need to click
on the corner again). If I comment out the all of the docked widget
code, I cannot get the same behavior to occur.
Has anyone else noticed similar behavior? It is possible it is my OS
install and I don't have Qt 4.2 on that machine to see if it is
reproducible there.
Thanks,
Robert
#include <QtGui>
#include <QtGui>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QMainWindow mainWindow;
QTextEdit *edit = new QTextEdit;
mainWindow.setCentralWidget(edit);
QDockWidget *dock = new QDockWidget("Dock");
QTextEdit *editDock = new QTextEdit(dock);
dock->setWidget(editDock);
mainWindow.addDockWidget(Qt::BottomDockWidgetArea, dock);
mainWindow.show();
return app.exec();
}