[Kde-bindings] [Bug 78273] New: QtRuby, slots aren't inherited

Imobach González Sosa imobachgs at softhome.net
Tue Mar 23 01:33:36 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=78273      
           Summary: QtRuby, slots aren't inherited
           Product: bindings
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kde-bindings mail kde org
        ReportedBy: imobachgs softhome net


Version:            (using KDE KDE 3.2.1)
Installed from:    Compiled From Sources
Compiler:          gcc versión 3.3.3 (Debian) 

Inheritance mechanism doesn't work for 'slots' defined by user. So, when using inheritance, the descendant class must specify slots in its own definition.

Example: we have a class 'Form1' that have a slot (ie. newSlot). If we try to use a 'child' class ('Form'), the slots from 'Form1' aren't inherited. So, we get this error message:

QObject::connect: No such slot Form::newSlot()
QObject::connect:  (sender name:   ' pushButton1')
QObject::connect:  (receiver name: 'unnamed')

If we specify in Form the slot, it works pretty well:

slots 'newSlot()'

So, it seems that slots definition must be inherited.

Thank you.



More information about the Kde-bindings mailing list