kolosick.m188 2 Junior Poster in Training

I have this code being called by a QMainWindow:

centralWidget()->currentWidget()->addSubWindow(new SubWindow());

the centralWidget is a QTabWidget the currentWidget is a QMdiWindow and I get the error: error: 'class QWidget' has no member named 'currentWidget' please help

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.