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

QSplitter: When widget are removed from a QSplitter, hidden widget are not shown again

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.6.0
    • 4.5.0
    • Widgets: Layout
    • None
    • a925ba1ab6316a155f2ac61f898c52f07a1340b4

      This exemple shows 2 buttons in a QSplitter. Clicking on one button will delete it.

      If you resize the slider in a way that hides one of the button, and then delete another button, the button that was previously hidden should become visible but this is not.

      This is related to KDE bug 190265

      #include <QtGui>
      int main(int argc, char **argv) {
      QApplication app(argc, argv);
      QSplitter *s = new QSplitter();
      for (int i = 0; i < 2; ++i)

      { QPushButton *pb = new QPushButton("delete" + QString::number(i)); s->addWidget(pb); QObject::connect(pb, SIGNAL(clicked()), pb, SLOT(deleteLater())); }

      s->show();
      return app.exec();
      }

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

            dedietri Gabriel de Dietrich (drgvond)
            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes