PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 705 - PySide should provide an equivalent to Q_CLASSINFO macro.
: PySide should provide an equivalent to Q_CLASSINFO macro.
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: HEAD
: All All
: P4 enhancement
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-03-01 14:14 EET by Marcelo Lira
Modified: 2011-06-22 20:14 EEST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcelo Lira 2011-03-01 14:14:28 EET
The title explains it all, I'll just add an example.

class MyObject : public QObject
{
    Q_OBJECT
    Q_CLASSINFO("DefaultProperty", "data")
...
};

MOC will generate this C++ code for Q_CLASSINFO:

...

static const char qt_meta_stringdata_MyObject[] = {
    "MyObject\0data\0DefaultProperty\0"
};  

const QMetaObject MyObject::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_MyObject,
      qt_meta_data_MyObject, 0 }
};
Comment 1 renato filho 2011-05-24 00:33:59 EEST
implemented on pyside commit:

commit 04be2b1ca26d5d4b51d7187542488e7f2f296e77
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Thu May 19 18:12:52 2011 -0300
Comment 2 renato filho 2011-05-26 17:04:03 EEST
PySide release 1.0.3
Comment 3 Matti Airas 2011-05-30 16:01:17 EEST
Documentation needed.
Comment 4 renato filho 2011-05-30 22:27:11 EEST
documentation add on pyside commit:

commit 2e985afb3aee480e4b7e1626b34bd998027807b8
Author: renato araujo <renato@renatoPC.indt.org>
Date:   Mon May 30 16:25:38 2011 -0300
Comment 5 renato filho 2011-06-22 20:14:06 EEST
release 1.0.4