Skip to content

QObjectList registered twice when used together with QtScript #338

@JulienMaille

Description

@JulienMaille

Getting this error on init: QMetaType::registerTypedef: -- Type name 'QObjectList' previously registered as typedef of 'QObjectList' [1032], now registering as typedef of 'QList ' [1074]. because I have a project that still has bits of QtScript and pythonqt at the same time.

From qscriptengine.cpp

QScriptEnginePrivate::QScriptEnginePrivate()
    : originalGlobalObjectProxy(0), currentFrame(0),
      qobjectPrototype(0), qmetaobjectPrototype(0), variantPrototype(0),
      activeAgent(0), agentLineNumber(-1),
      registeredScriptValues(0), freeScriptValues(0), freeScriptValuesCount(0),
      registeredScriptStrings(0), processEventsInterval(-1), inEval(false),
      uncaughtExceptionLineNumber(-1)
{
    qMetaTypeId<QScriptValue>();
    qMetaTypeId<QList<int> >();
#ifndef QT_NO_QOBJECT
    qMetaTypeId<QObjectList>();
#endif

and

qRegisterMetaType<QObjectList>("QObjectList");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions