Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
4.5.1
-
None
Description
Run the application below.
Place the widget on screen so that the modal dialog will open on top of it.
When you press the button keep the the left mouse button pressed down and then move the mouse so that it is hovering the button that is now under the modal dialog. This will emit new pressed signals for the button so that multiple modal dialogs are shown.
Code Example:
#include <QtGui>
class MyWidget : public QWidget
{
Q_OBJECT
public:
MyWidget(QWidget *parent = 0) : QWidget(parent)
public slots:
void showNewWidget()
private:
QPushButton *button;
};
#include "main.moc"
int main(int argc, char **argv)
{
QApplication a(argc, argv);
MyWidget w;
w.show();
return a.exec();
}