c++ - How to know the path of file that was opened in each mdi subWindow? -



c++ - How to know the path of file that was opened in each mdi subWindow? -

i have next mdi application:

each sub window has content of different file. when want save content of active window, thus, want know path of file opened in active window.

how know path of file opened in active subwindow or other subwindow ?

you can set path user property on widget, using qobject::setproperty, , retrieve using qobject::property. qmdisubwindow has no concept of open file. it's mdi widget. might utilize show today's weather, , not contents of particular file.

c++ qt qt5

Comments