Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, March 2002
no Qt toolbar in VC++6 Autorenversion


Message 1 in thread

Hi,

A friend wants to learn Qt, but only has the 
"Autorenversion" of VC++6, an almost full 
version of MS VC++ (lacking the optimizer, 
I think), that was included on a book-CD. 

After installing Qt2.3, he cannot enable the Qt toolbar 
in VC++6, because it doesn't appear under "customize...
add-ins". On the whole harddisk, there is only one 
*.dsm macro-file (sample.dsm), but that's not Qt.

Without that toolbar - how can one create a new project, 
MOC etc.? Or how does he persuade Qt and VC++ to work 
together?

Apart from cmd.prompt tmake and ..., of course.

thx,
Andreas

----
visit the euro project CYE:
beta will be launched in a few hours:
 www.AndreasKrueger.de/euro /beta


Message 2 in thread

- Simply create a new Project (without mfc, just a win-application, or, 
if console only a console apllication).
- Customize the project itself, add $(QTDIR)\include to the include path 
and QT_DLL to the defines
- Add all you stuff to it, means *.cpp/*.h/*.ui
- Customize the create process for the ui files:
* commands:
%qtdir%\bin\uic.exe $(InputPath) -o $(InputDir)\$(InputName).h 
%qtdir%\bin\uic.exe $(InputPath) -i $(InputName).h -o 
$(InputDir)\$(InputName).cpp
* outputs:
$(InputDir)\$(InputName).h
$(InputDir)\$(InputName).cpp
- Add the created files to your project, customize the *.h creation 
process if needed (Q_OBJECT in class):
* commands
%qtdir%\bin\moc $(InputPath) -o moc_$(InputName).cpp
* outputs
moc_$(InputName).cpp
- Add the created moc:*-cpp files to the project

Don't forget to add the qt*.lib to your project or it takes you 10 
minutes to see all errors...

Or maybe it helps if you copy the Vcaddin to the location
\Microsoft Visual Studio\Common\MSDev98\AddIns
but this is not a makro but a dll (you can insert both into studio, 
makro is only default)

Andreas K wrote:

>Hi,
>
>A friend wants to learn Qt, but only has the 
>"Autorenversion" of VC++6, an almost full 
>version of MS VC++ (lacking the optimizer, 
>I think), that was included on a book-CD. 
>
>After installing Qt2.3, he cannot enable the Qt toolbar 
>in VC++6, because it doesn't appear under "customize...
>add-ins". On the whole harddisk, there is only one 
>*.dsm macro-file (sample.dsm), but that's not Qt.
>
>Without that toolbar - how can one create a new project, 
>MOC etc.? Or how does he persuade Qt and VC++ to work 
>together?
>
>Apart from cmd.prompt tmake and ..., of course.
>
>thx,
>Andreas
>
>----
>visit the euro project CYE:
>beta will be launched in a few hours:
> www.AndreasKrueger.de/euro /beta
>
>--
>List archive and information: http://qt-interest.trolltech.com
>
>