简体   繁体   English

GTKM在课外关闭GUI窗口

[英]Gtkmm closing a gui window fro outside the class

I am using Gtkmm package in Linux C++ for GUI Programming. 我正在Linux C ++中使用Gtkmm软件包进行GUI编程。 I want to close one gui window from another class to call a gui function. 我想从另一类关闭一个GUI窗口以调用gui函数。 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();
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM