amelvill-umich / QtPropertyBrowser_Qt5Example

A property browser framework enabling the user to edit a set of properties.
www.commontk.org
1 stars 0 forks source link

Can't be built with QTCreator #1

Open amelvill-umich opened 4 years ago

amelvill-umich commented 4 years ago

All of the QtCreator .pro files seem to be set up for QT4, still.

I was not able to find an easy way to fix this, unfortunately.

The big issue that made me stop looking into it, is the moc files do not seem to be generated properly for the library itself.

From what I've read, this will also prevent the QtpropertyBrowser from showing up in the designer, it will have to be added programatically in an example

amelvill-umich commented 4 years ago

mainwindow.obj:-1: error: LNK2001: unresolved external symbol "public: static struct QMetaObject const QtVariantPropertyManager::staticMetaObject" (?staticMetaObject@QtVariantPropertyManager@@2UQMetaObject@@B)

Do other qt widgets have this struct? Check the Qt source.

EDIT: No, it does not seem like the other objects have a staticMetaObject member, this might be something that's generated by the MOC (meta object compiler).

Possible reasons for this problem:

amelvill-umich commented 4 years ago

This may not have resolved the problem for building the QtPropertyBrowser library with QtCreator, but I can at least build my example now with QtCreator,

See https://github.com/amelvill-umich/QtPropertyBrowser/commit/1a947d8fb58ddb1e4094083aa9793aa87f8f05fb