c++ - Cannot find ui_chatdialog.h in Qt 4.8.5 network example w/ VS 2008 -
i new developing qt , wish compile qt network chat example comes qt 4.8.5: http://qt-project.org/doc/qt-4.8/network-network-chat.html
i'm working within vs 2012 compiling vs 2008. have following includes:
c:\qt\4.8.5\include\qt; c:\qt\4.8.5\include\qtuitools; c:\qt\4.8.5\include; c:\qt\4.8.5\include\qtcore; c:\qt\4.8.5\include\qtgui; c:\qt\4.8.5\include\qtnetwork; %(additionalincludedirectories)
i feel there step i'm missing in compilation process, perhaps generates ui_chatdialog.h file? can't figure out why missing example, , not exist in files came qt version (4.8.5) downloaded.
this current output:
>------ rebuild started: project: qtchatexample, configuration: release win32 ------ 1> chatdialog.cpp 1>c:\users\dustin\documents\qtchatexample\src\chatdialog.h(44): fatal error c1083: cannot open include file: 'ui_chatdialog.h': no such file or directory 1> client.cpp 1> connection.cpp 1> main.cpp 1>c:\users\dustin\documents\qtchatexample\src\chatdialog.h(44): fatal error c1083: cannot open include file: 'ui_chatdialog.h': no such file or directory 1> peermanager.cpp 1> server.cpp ========== rebuild all: 0 succeeded, 1 failed, 0 skipped ==========
you need run uic generate header files ui files
http://qt-project.org/doc/qt-4.8/uic.html
and need moc generate source meta-object code things signals , slots.
http://qt-project.org/doc/qt-4.8/metaobjects.html
one way use qt addon visual studio. although create custom build step executes moc, uic , resource compiler or use qmake or cmake execute these you.
http://qt-project.org/faq/answer/what_is_the_qt_visual_studio_add-in
since tagged question vs2012 add following:
is possible work qt4 projects in visual studio 2012 using add-ins?
Comments
Post a Comment