在C ++中创建一个简单的跨平台GUI的最好方法是什么? [英] What is the best way to make a simple cross platform GUI in C++?

查看:405
本文介绍了在C ++中创建一个简单的跨平台GUI的最好方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用非常简单的GUI(背景图片,取消按钮和进度栏)制作桌面应用程序。

I want to produce a desktop application with a very simple GUI (a background graphic, a cancel button and a progress bar).

我的主要目标是Mac和Windows

My main targets are Mac and Windows.

这是否可以使用Visual C ++ 2008?

Is this possible using Visual C++ 2008?

任何人都可以指向使用Visual C ++的任何示例吗?

Can anyone point to any examples using Visual C++?

还是有更好的方法来单独创建GUI?

Or is there a better way to create the GUI separately?

推荐答案

p>使用Qt4。 http://qt-project.org/

Use Qt4. http://qt-project.org/

这是一个自包含框架,其中包含开发工具,GUI构建器,String / IO / XML / Thread类,音频/视频控件,HTML窗口小部件和许多更多的功能。它是建立在完全多平台,所有系统的一个代码。

This is a self containing framework which contains developers tools, GUI builders, String/IO/XML/Thread classes, Audio/Video controls, HTML widgets and many, many more features. It's built to be completely multi-platform, one code for all systems.

与wxWidgets相反,它感觉更面向对象,并有更好的文档和它更好地维护。

In contrary to wxWidgets, it feels more object-oriented, and has by far better documentation and its better maintained.

在线查看: http://qt-project.org/doc/qt-4.8/

EDIT-
自原答复6年后。我应该指向Qt5 - http://www.qt.io/

这篇关于在C ++中创建一个简单的跨平台GUI的最好方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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