Important: Please read the Qt Code of Conduct -

[Solved] Compiling QtPropertyBrowser : undefined QtVariantPropertyManagerPrivate

  • I'm eager to use the QtPropertyBrowser classes, especially after compiling and running the demos. However I can't figure out how to compile it in my own application. The compiler gives hundreds of errors of the form:

    1>.\GeneratedFiles\Debug\moc_qtvariantproperty.cpp(161) : error C2027: use of undefined type 'QtVariantPropertyManagerPrivate'
    1> h:\source\ladarsbirsrc\ladaproto\generatedfiles\debug../../../qtpropertybrowser/src/qtvariantproperty.h(75) : see declaration of 'QtVariantPropertyManagerPrivate'
    1>.\GeneratedFiles\Debug\moc_qtvariantproperty.cpp(161) : error C2227: left of '->slotValueChanged' must point to class/struct/union/generic type

    There are about 260 such errors. We're using Visual Studio 2008 and Qt 4.7.3.

    I know this isn't officially part of Qt, didn't know where else to ask about this. Thanks.

  • Moved to installation and deployment subforum

  • Solved to a point; I was able to compile the property browser code into a DLL, and link the DLL to my program. Still don't understand why the DLL and the demo solution that came with the library compile, but adding the source directly in my project doesn't.

Log in to reply