【发布时间】:2017-04-17 09:21:26
【问题描述】:
我在 Linux C++ 中使用 Gtkmm 包进行 GUI 编程。我想从另一个类中关闭一个 gui 窗口以调用 gui 函数。有什么建议吗?
【问题讨论】:
我在 Linux C++ 中使用 Gtkmm 包进行 GUI 编程。我想从另一个类中关闭一个 gui 窗口以调用 gui 函数。有什么建议吗?
【问题讨论】:
我认为这会帮助您从其他窗口运行和关闭寡妇。
#include "currentWindow.h"
#include "NewWindow.h"
currentWindow::currentWindow() :
{
...
...
...
NewWindow NW;
// to run new window
Gtk::Main::run(NW);
//to close it
NW.hide();
}
【讨论】: