Compiling a simple Qt “Hello World!” application within Visual Studio 2010 Express?

后端 未结 5 1228
予麋鹿
予麋鹿 2021-01-06 02:35

I\'m trying to build a basic Qt \"Hello, world!\" application inside Visual Studio.

I got the moc step to work (I think), but now I am at a loss as to h

5条回答
  •  隐瞒了意图╮
    2021-01-06 03:03

    You cannot install the Qt VS plugin on the Express edition of VC++. Assuming you got the moc to compile, you also need to make sure you're including the appropriate libraries (*.lib files) at link time. This goes under Project properties > Linker > Input > Additional Dependencies.

    You will need qtcore4.lib at a minimum.

    Also make sure the Qt library path is in your library search path. On my computer it's c:\qt\4.6.2\lib.

提交回复
热议问题