Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
4.4.0
-
None
Description
When raising a widget in a nested Q3WidgetStack that is hidden then it does not raise the widget, this is a regression in comparison to Qt 3's QWidgetStack where this was working fine.
Test case main.cpp to reproduce for use with the attached form_nested_widget_stack_dialog.ui
===============================
#include <Qt3Support>
#include "form_nested_widget_stack_dialog.h"
class MyDialog : public QDialog
{
Q_OBJECT
public:
MyDialog(QWidget *parent = 0) : QDialog(parent)
public slots:
void mySlotPage0()
void mySlotPage1()
{ ui.childWidgetStack->raiseWidget(1); }private:
Ui_formUi ui;
};
#include "main.moc"
int main(int argc, char **argv)
{
QApplication a(argc, argv);
MyDialog d;
d.show();
QTimer::singleShot(500, &d, SLOT(hide()));
QTimer::singleShot(1000, &d, SLOT(mySlotPage1()));
QTimer::singleShot(1500, &d, SLOT(show()));
return a.exec();
}