Je dois afficher un navigateur de propriétés sous une application MFC.Compilation Combinaison de qtwinmigrate + qtpropertybrowser Sous VC++ 2008
J'essaie de combiner et de compiler la solution pour les deux
http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Windows/qtwinmigrate/ http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Widgets/qtpropertybrowser/
J'utilise VC2009, QT 2009,04 avec Visual Studio Add-On 1.1.1
Prenez note, sous ma machine, il n'y a aucun problème pour moi de les compiler avec succès séparément.
je copier et ajouter tous les fichiers du RPC et linteaux exsiting trouvées dans
qtpropertybrowser-2.5-opensource\src
dans
qtwinmigrate-2.8-opensource\examples\qtdll
Voici comment mon nouveau projet ressemble dans le tournage de l'écran (qtwinmigrate - fenêtres à droite plus)
alt text http://yancheng.cheok.googlepages.com/help.png
Le qtpropertyb rowser, est le projet que je suis en mesure de compiler sans problème:
1>------ Rebuild All started: Project: simple, Configuration: Release Win32 ------
1>Deleting intermediate and output files for project 'simple', configuration 'Release|Win32'
1>Moc'ing qtpropertybrowserutils_p.h...
1>RCC ..\..\src\qtpropertybrowser.qrc
1>MOC ..\..\src\qtvariantproperty.h
1>MOC ..\..\src\qttreepropertybrowser.h
1>MOC ..\..\src\qtpropertymanager.h
1>MOC ..\..\src\qtpropertybrowser.h
1>MOC ..\..\src\qtgroupboxpropertybrowser.h
1>MOC ..\..\src\qteditorfactory.h
1>MOC ..\..\src\qtbuttonpropertybrowser.h
1>Compiling...
.
.
.
1>Compiling...
1>moc_qtpropertybrowserutils_p.cpp
1>Linking...
1>Embedding manifest...
Cependant, quand viendra construire la version modifiée de qtwinmigrate (version originale de qtwinmigrate a pu compilé sans problème)
1>------ Rebuild All started: Project: qtdialog, Configuration: Release Win32 ------
1>Deleting intermediate and output files for project 'qtdialog', configuration 'Release|Win32'
1>Moc'ing qtpropertybrowserutils_p.h...
1>Moc'ing qteditorfactory.h...
1>Moc'ing qtvariantproperty.h...
1>Moc'ing qttreepropertybrowser.h...
1>Moc'ing qtpropertymanager.h...
1>Moc'ing qtpropertybrowser.h...
1>Moc'ing qtgroupboxpropertybrowser.h...
1>Moc'ing qtbuttonpropertybrowser.h...
1>Moc'ing qwinwidget.h...
1>Moc'ing qwinhost.h...
1>Compiling...
.
.
.
1>Compiling...
1>moc_qtpropertybrowserutils_p.cpp
1>moc_qteditorfactory.cpp
1>.\Release\moc_qteditorfactory.cpp(74) : error C2027: use of undefined type 'QtSpinBoxFactoryPrivate'
1> c:\documents and settings\yan-cheng.cheok\my documents\downloads\qtwinmigrate-2.8-opensource\qtwinmigrate-2.8-opensource\examples\qtdll\release\../../../lib/qtpropertybrowser-2.5-opensource/src/qteditorfactory.h(97) : see declaration of 'QtSpinBoxFactoryPrivate'
1>.\Release\moc_qteditorfactory.cpp(74) : error C2227: left of '->slotPropertyChanged' must point to class/struct/union/generic type
Mes questions est
- Pourquoi qtpropertybrowser seulement effectuer "Moc'ing" dans 1 fichier, mais qtwinmigrate effectuer "Moc'ing" dans tant de fichiers?
- Pourquoi qtpropertybrowser vient de compiler "moc_qtpropertybrowserutils_p.cpp", mais qtwinmigrate essaie de compiler tant de "moc _.... cpp"?