这是代码..
Glib::RefPtr<Gio::File> file = Gio::File::create_for_path(filepath);
Gtk::AppChooserDialog *dialog = new Gtk::AppChooserDialog(file, *this);
if ( dialog->run() == Gtk::RESPONSE_OK ) {
Glib::RefPtr<Gio::AppInfo> appinfo = dialog->get_app_info();
appinfo->launch(file);
}
dialog->hide();
这是我在执行上述代码时收到的消息..
glibmm-WARNING **: Glib::ConstructParams::ConstructParams(): object class "gtkmm__GtkAppChooserDialog" has no property named "file"
我可能在这里犯了一个愚蠢的错误。谁能帮我这个?提前致谢..