Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-2084

When raising a widget in a nested Q3WidgetStack that is hidden then it does not raise the widget

    XMLWordPrintable

Details

    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)

      { ui.setupUi(this); }

      public slots:
      void mySlotPage0()

      { ui.childWidgetStack->raiseWidget(0); }

      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();
      }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bjnilsen Bjørn Erik Nilsen
            anshaw Andy Shaw (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes