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

widget isn't hidden if it's added to qtoolbar after being hidden

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 5.6.2
    • None
    • win10 x64
    • Windows

      //Code1 
      QToolBar* pTool = new QToolBar;
      QCheckBox* pCheckBox = new QCheckBox("myCheckBox");
      pTool->addWidget(pCheckBox);
      pCheckBox->setVisible(false);
      
      //Code2
      QToolBar* pTool = new QToolBar;
      QCheckBox* pCheckBox = new QCheckBox("myCheckBox");
      pCheckBox->setVisible(false);
      pTool->addWidget(pCheckBox);

      pCheckBox is still visible in Code1, but it's Invisible in Code2

       

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            pmode peng weijie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes