用Qt设置Code :: Blocks [英] Setting up Code::Blocks with Qt

查看:438
本文介绍了用Qt设置Code :: Blocks的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对编程总体很新,我开始学习Qt。我想知道是否有任何方法来设置Code :: Blocks与QT,所以我可以只使用IDE而不是QtCreator?我不太喜欢创建者,我已经很习惯处理Code :: Blocks了。



提前感谢。

解决方案

您的问题相当广泛,但是根据您的意见,您的问题似乎是无法创建Qt 5项目,因为向导缺少该选项。



这似乎是在10月上游修补补丁下面。该脚本已扩展为向导中提供了一个Qt 5选项。



Code :: Blocks Qt5向导



您需要确保使用适当的版本,或至少反向移植更改如果可以的话。



即使这是不可能的,你可能只是创建一个Qt 4项目,并修改qmake路径,库,如果您的应用程序是基于小部件的,请将 widgets 关键字添加到 QT 变量等。 p>

注意:我建议给一些考虑使用QtCreator。从长远来看,你会得到很多。它获得了更多的支持Qt比CodeBlocks,但我不知道你的用例。如果您计划使用与C ++ / Qt不同的IDE开发,CodeBlocks可能更适合您的一致性。


I'm pretty new to programming overall and I'm set out to learn Qt. I'm wondering if there is any way to set up Code::Blocks with QT so I can just use the IDE instead of the QtCreator? I'm not too fond of the Creator and I'm already very used to dealing with Code::Blocks.

Thanks in advance.

解决方案

Your question is quite broad, but based on your comment, your problem seems to be that you cannot create a Qt 5 project because the wizard is missing that option.

This seems to have been fixed upstream in October by the patch below. The script was extended to provide you a Qt 5 option in the Wizard.

Code::Blocks Qt5 Wizard

You need to make sure to use the appropriate version, or at least backport the change to your version if you can.

Even if this was not possible, you can probably just create a Qt 4 project, and modify the qmake path, the libraries, includes, and if your application is meant to be widget based, add the widgets keyword to the QT variable, etc.

Note: I would suggest to give some consideration to using QtCreator. You would gain a lot in the long term. It gets a lot more support around Qt than CodeBlocks, but I am not sure about your use case. If you plan to develop with the same IDE other than C++/Qt, CodeBlocks may suit you better for consistency.

这篇关于用Qt设置Code :: Blocks的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆