Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/PythonQt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ void PythonQt::init(int flags, const QByteArray& pythonQtModuleName)

PythonQtMethodInfo::addParameterTypeAlias("QObjectList", "QList<QObject*>");
qRegisterMetaType<QList<QObject*>>("QList<void*>");
qRegisterMetaType<QObjectList>("QObjectList");
if (QMetaType::type("QObjectList") == QMetaType::UnknownType) {
qRegisterMetaType<QObjectList>("QObjectList");
}
Comment on lines +124 to +126
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is awfully specific. Please add a comment explaining why/in which case this is needed.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want me to restrict it to Qt5 too?

qRegisterMetaType<QList<QObject*>>("QList<QObject*>");
if (QT_POINTER_SIZE == 8) {
qRegisterMetaType<quint64>("size_t");
Expand Down