[Qt-interest] moc .cpp file in visual studio

tank tangk at lemote.com
Mon Jun 29 11:15:59 CEST 2009


you can use moc *.h file and will product the moc_*.cpp file.
when you use the visual studio ,it will automatically use the moc to
compile the *.h file
Linda Maria 写道:
>
> Hi
>
>  
>
> I am customizing qtcore for own purpose. I am working with visual
> studio for this purpose. This works ok, except that I don’t know how
> to setup rules to run moc on .cpp files that declare Q_OBJECT and,
> therefore, .moc files are not created. As an example qtimer.cpp need
> to be moc-ed. Can anyone tell me how to configure visual studio to run
> moc on cpp files?
>
>  
>
> Thanks.
>
> Linda Maria
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>   




More information about the Qt-interest-old mailing list