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

When using QTreeWidget in a Tab widget, the whole UI will be frozen.

    XMLWordPrintable

Details

    • 4c9212cdf38b35e89311416436f1e60b818b69c3

    Description

      Hi,
      When using QTreeWidget in a Tab widget, the whole UI will be frozen. OS is alive, but application is frozen and can not exit.

      This is found in Symbian SDK since mcl_201024_hw79, I'm not sure what is the Qt version in this SDK.

      For verification, I have wrote a simple test code. This code works on windows xp, but frozen on Symbian (You can test it on N8).

      This Qt problem has blocked our tools and it is a critical problem for us. Would you please help us to have a look? Thanks.

      Please refer to my test code as below, if QTreeWidget is used, UI freeze, delete QTreeWidget, all will be fine.

      Also, a test project is attached, it was wrotten on Qt's Tab Dialog example.

      //Tab Statistic

      tabStatistic = new QWidget(tabWidget);
      tabStatistic->setContextMenuPolicy(Qt::NoContextMenu);
      tabWidget->addTab(tabStatistic, tr("Statistics"));

      QGridLayout *tabStatisticLayout = new QGridLayout(this);
      tabStatisticLayout->setVerticalSpacing(2);
      tabStatisticLayout->setHorizontalSpacing(2);
      tabStatisticLayout->setSpacing(2);
      tabStatisticLayout->setMargin(2);

      //treeStatistic has problem, delete tree, it is fine.
      //Statistic Tab
      treeStatistic11 = new QTreeWidget(tabStatistic);
      treeStatistic11->setContextMenuPolicy(Qt::NoContextMenu);
      treeStatistic11->headerItem()->setText(0, tr("Statistics12"));

      executedItems = new QTreeWidgetItem(treeStatistic11);
      executedItems->setText(0, tr("Executed Cases(0)"));
      passedItems = new QTreeWidgetItem(treeStatistic11);
      passedItems->setText(0, tr("Passed Cases(0)"));
      failedItems = new QTreeWidgetItem(treeStatistic11);
      failedItems->setText(0, tr("Failed Cases(0)"));
      crashedItems = new QTreeWidgetItem(treeStatistic11);
      crashedItems->setText(0, tr("Crashed Cases(0)"));
      abortedItems = new QTreeWidgetItem(treeStatistic11);
      abortedItems->setText(0, tr("Aborted Cases(0)"));

      tabStatisticLayout->addWidget(treeStatistic11, 0, 0);
      tabStatistic->setLayout(tabStatisticLayout);

      Attachments

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

        Activity

          People

            samimeri Sami Merila (Inactive)
            kevinzeng Kevin Zeng
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes