I am using Gtkmm package in Linux C++ for GUI Programming. I want to close one gui window from another class to call a gui function. Any suggestions?
I think thois w'll help you to run and close widow from other window.
#include "currentWindow.h"
#include "NewWindow.h"
currentWindow::currentWindow() :
{
...
...
...
NewWindow NW;
// to run new window
Gtk::Main::run(NW);
//to close it
NW.hide();
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.