C++ 如何使用 Code::Blocks 创建 GUI 程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14686573/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 18:36:07  来源:igfitidea点击:

How to create GUI programs with Code::Blocks

c++

提问by nisalb

Previously I used Visual Studio for my C++ programmings. But some cost effects I had to change my IDE, so I chose Code::Clocks (12.11). But I can't find a way to develop GUI applications with C::B. Is there any way to develop GUIs with C::B?

以前,我使用 Visual Studio 进行 C++ 编程。但是一些成本影响我不得不改变我的 IDE,所以我选择了 Code::Clocks (12.11)。但是我找不到用 C::B 开发 GUI 应用程序的方法。有没有办法用 C::B 开发 GUI?

采纳答案by 0xEDD1E

Yes, You can develop GUIs with CodeBlocks if you have GTK+ or wxWidgetLibraries. You can use one of them at your own choice. CodeBlocks can't use them until you download and install them, So you have to perform some actions to make them usable in CodeBlocks. For GTK+ configuration steps see thisand for wxWidget see this.

是的,如果您有GTK+ 或wxWidget库,您可以使用 CodeBlocks 开发 GUI 。您可以自行选择使用其中之一。CodeBlocks 在您下载并安装它们之前无法使用它们,因此您必须执行一些操作才能使它们在 CodeBlocks 中可用。对于 GTK+ 配置步骤,请参见这个,对于 wxWidget,请参见这个