Seite 1 von 1

[erledigt]Problem beim inkludieren von QDeclarative

Verfasst: 29. Februar 2012 10:20
von MasterMito
Servus,

bin langsam echt am verzweifeln, hoffe ihr könnt mir helfen.

Ich habe ein Projekt, das hat eine Klasse die von QDeclarativeView ableitet. Diese lädt ein QML-File und zeigt es an. Alles funktioniert, alles fein.

In einer Lib habe ich einen Satz an Elementen (QGraphicsProxyWidgets) die ich nun mittel qmlRegisterType einbinden möchte. Der ganze Spaß hat schon mehrmals funktioniert, an der Lib liegt es definitiv nicht.
Sobald ich QDeclarative inkludiere bringt er mit folgende Compilererrors in den Qt-Headers:

Code: Alles auswählen

1>MeasurementsDialogNG.cpp
1>v:\qt\qt\src\declarative\qml\qdeclarativeprivate.h(70) : error C2143: syntax error : missing ',' before 'string'
1>v:\qt\qt\src\declarative\qml\qdeclarativecomponent.h(126) : error C2975: 'QDeclarativeTypeInfo' : invalid template argument for 'unnamed-parameter', expected compile-time constant expression
1>        v:\qt\qt\src\declarative\qml\qdeclarativeprivate.h(72) : see declaration of 'QDeclarativeTypeInfo'
1>v:\qt\qt\src\declarative\qml\qdeclarativecomponent.h(126) : error C2913: explicit specialization; 'QDeclarativeTypeInfo' is not a specialization of a class template
IDE ist VS2005, Windows7 64Bit

Hoffe mir kann jemand helfen, springe hier gleich aus dem Fenster oder vernichte Maus und Tastatur

Re: Problem beim inkludieren von QDeclarative

Verfasst: 29. Februar 2012 10:38
von MasterMito
gelöst. Probleme waren Nasty-Project-Settings. Verwenden von Precompiled-Header und dann irgendwie doch nicht.
Frag mich welcher Kollege so einen Mist macht.