August 5, 2011

deanc deanc
Lab Rat
18 posts

[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>moc_qtvariantproperty.cpp
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.

2 replies

August 5, 2011

Eddy Eddy
Gene Splicer
1520 posts

Moved to installation and deployment subforum

 Signature 

Qt Certified Specialist
Nokia Qt Ambassador

August 5, 2011

deanc deanc
Lab Rat
18 posts

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.

 
  ‹‹ [SOLVED]Cross-compilation for embedded powerpc      Developing qt application for windows ce on ubuntu host ››

You must log in to post a reply. Not a member yet? Register here!