With CentOS 5.2 gnome/metacity and Qt-4.5-RC1 the label in the following
program will lose focus, rather than gain focus by calling
QWidget::activateWidget. If the app.processEvents() invocation is
uncommented it works. This is a regression from 4.4.3.
I understand that calling QWidget::activateWindow is typically not
necessary or desirable in this situation. I just stumbled over this and
thought I'd report it.
Regards,
Thomas Sondergaard
#include <QApplication>
#include <QLabel>
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
QLabel w("Hello World");
w.resize(1000, 1000);
w.show();
// app.processEvents();
w.activateWindow();
return app.exec();
}
_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback