什么是用C ++编写GUI应用程序时使用的最好的图书馆吗? [英] What is the best library to use when writing GUI applications in C++?

查看:124
本文介绍了什么是用C ++编写GUI应用程序时使用的最好的图书馆吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:结果
   GUI工具包,这是我应该使用?

我有C / C ++经验公平一点 - 主要适用于Windows / Linux的编写控制台应用程序,并且还的C#经验公平一点 - 通常用于编写的WinForms应用程序等等

I've got a fair bit of C/C++ experience - mostly for writing console application for Windows/Linux, and also a fair bit of C# experience - generally for writing WinForms applications etc.

我非常IM pressed与轻松的,我可以在.NET中创建的窗口,如简单的例子,作为事

I'm extremely impressed with with ease at which I can create a window in .net, for example something as simple as

Form form = new Form();
form.ShowDialog();

是足以让一个空白的形式在屏幕上。事实上,

is enough to get a blank form up on the screen. In fact,

new Form().ShowDialog();

在技术上足够,只要它关闭后,我们不介意丢失参考的形式。

is technically enough as long as we don't mind losing reference to the form after it's closed.

我试过用C编写一些基于Windows的GUI的东西++使用 WINDOWS.H ,但不仅学习曲线显得有点陡峭,而且语法非常详细。创建像上面提到的单行.NET实现一个简单的窗口可以很容易地使用超过2十几行 WINDOWS.H

I've tried writing some windows-based GUI stuff in C++ using windows.h, but not only does the learning curve seem a little steep but also the syntax is extremely verbose. Creating a simple window like the above mentioned single line .net implementation can easily exceed 2 dozen lines using windows.h.

不仅如此,如果我端口的应用程序转移到Linux的/ MAX(这一点我可以pretty多从来没有做.NET中,像单等黑客除外),那么我会需要重写GUI code的95%。

But not only that, if I were to port the application over to Linux/Max (something which I can pretty much never do with .net, with the exception of hacks like mono etc), then I would need to rewrite 95% of the GUI code.

我假设这是哪里的框架中来,例如QT等...(我真的不知道很多关于GUI框架,我怕)。

I'm assuming this is where frameworks come in, for example QT etc... (I don't really know much about gui frameworks, I'm afraid).

你推荐什么GUI框架?这是最强大的,哪些是最容易使用?
你如何应对一般用C编码的GUI任务/ C ++?

What GUI frameworks do you recommend? which are the most powerful and which are the easiest to use? How do you generally tackle the task of coding your GUI in C/C++?

推荐答案

Qt的手了。

这是最完整,最成熟,速度最快的框架。而在它的上面,它的严重multiplaftorm和你的商业友好的开源或付费支持的选择。

it's the most complete, most mature, fastest framework available. and on top of it, it's seriously multiplaftorm and your choice of commercially friendly open source or paid support.

这篇关于什么是用C ++编写GUI应用程序时使用的最好的图书馆吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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