Search code examples
c++qtqt5mdichild

How to get the number(count) of open MDI children


I want to get the number of MDI children that opened.

For example in c#

this.MdiChildren.Count()

Another example by an image:


Solution

  • The QMdiArea::subWindowList() method returns a QList of MDI child windows. QList has a count() method.