Unsolved cannot register existing type 'GtkWidget'
-
Hello,
I just install the Qt 5.9, previously I used the 5.7. On that line:
QRgb rgb = QColorDialog::getRgba(qRgb(255,255,255),&ok);
I get that error:
(BGE_GUI:3730): GLib-GObject-WARNING **: cannot register existing type 'GtkWidget' (BGE_GUI:3730): GLib-GObject-WARNING **: cannot add class private field to invalid type '<invalid>' (BGE_GUI:3730): GLib-GObject-WARNING **: cannot add private field to invalid (non-instantiatable) type '<invalid>' (BGE_GUI:3730): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed (BGE_GUI:3730): GLib-GObject-WARNING **: cannot register existing type 'GtkBuildable' (BGE_GUI:3730): GLib-GObject-CRITICAL **: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed (BGE_GUI:3730): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed (BGE_GUI:3730): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed (BGE_GUI:3730): GLib-GObject-CRITICAL **: g_type_register_static: assertion 'parent_type > 0' failed (BGE_GUI:3730): GLib-GObject-WARNING **: cannot add private field to invalid (non-instantiatable) type '<invalid>' Le programme s'est terminé subitement.
I use Xubuntu 16.04.
-
@Xav12358 Those are not Qt warnings. Is your app working properly?
-
The QDialog is not show and the MainWindows freeze.
-
Gtk + Qt ?!
-
I don't understand too. I just install the new Qt 5.9...
-
It looks like Qt is misusing the GTK+ API when rendering the widgets with a GTK+ style.