Show() and hide() widget

Heads up! You've already completed this tutorial.

Mohamad_Zakwan | 2020-08-02 05:26:14 UTC | #1

Hi,

From: Creating searchable widget dashboards Q: Is below statement entirely correct?

Each Qt widget has a .setVisible method which can be used to toggle that widget's visibility. >>However, compound or nested widgets can only become invisible when all their child widgets are >>also invisible.

This is from QT website. https://doc.qt.io/qt-5/qwidget.html#visible-prop It seems like when I hide parent (OnOffWidget) then all child widgets also got hidden.

If an ancestor is not visible, the widget won't become visible until all its ancestors are shown.


Well done, you've finished this tutorial! Mark As Complete
[[ user.completed.length ]] completed [[ user.streak+1 ]] day streak

Show() and hide() widget was written by Martin Fitzpatrick .

Martin Fitzpatrick has been developing Python/Qt apps for 8 years. Building desktop applications to make data-analysis tools more user-friendly, Python was the obvious choice. Starting with Tk, later moving to wxWidgets and finally adopting PyQt.