Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. cannot register existing type 'GtkWidget'
Forum Updated to NodeBB v4.3 + New Features

cannot register existing type 'GtkWidget'

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 7.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    Xav12358
    wrote on last edited by
    #1

    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.

    jsulmJ 1 Reply Last reply
    0
    • X Xav12358

      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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Xav12358 Those are not Qt warnings. Is your app working properly?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • X Offline
        X Offline
        Xav12358
        wrote on last edited by
        #3

        The QDialog is not show and the MainWindows freeze.

        1 Reply Last reply
        0
        • VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #4

          Gtk + Qt ?!

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          1 Reply Last reply
          0
          • X Offline
            X Offline
            Xav12358
            wrote on last edited by
            #5

            I don't understand too. I just install the new Qt 5.9...

            1 Reply Last reply
            0
            • V Offline
              V Offline
              Vadi2
              wrote on last edited by
              #6

              It looks like Qt is misusing the GTK+ API when rendering the widgets with a GTK+ style.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved