跨平台C ++ GUI API [英] Cross Platform C++ GUI API

查看:74
本文介绍了跨平台C ++ GUI API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。我正在寻找一个跨平台的GUI API,并且可以在Windows,Mac和Linux上运行
。我希望有一些免费的东西可以打开

来源。你知道,我还没有找到符合这个标准的东西。


GTK +很好,但它在Mac上不起作用。 Qt声称可以在所有

操作系统上工作,但它需要在该平台上重新编译并且

我还没弄明白如何在不购买

商业版。所以,如果有人可以推荐替代品,请

做。


无论如何,如果没有任何东西可以满足我的需求,我

我在考虑写自己的吗?如果你可以提供任何

的信息,我将如何做到这一点,比如我将如何绘制GUI

小部件和类似的东西,这样我就可以自己编程,

这将是伟大的。


谢谢

解决方案

< blockquote> darkhack写道:

你好。我正在寻找一个跨平台的GUI API,适用于Windows,Mac和Linux。我希望有一些免费且开放的资源。你看,我还没有找到符合这个标准的东西。




为什么选择C ++?所有顶级操作系统都支持Ruby和Tk。


C ++适用于硬系统代码。 GUI是轻量级事件驱动的命令和控制

代码。


-

Phlip
http://industrialxp.org/community/bi...UserInterfaces


< da ****** @ gmail.com>在消息中写道

news:11 ********************* @ z14g2000cwz.googlegro ups.com ...

你好。我正在寻找一个跨平台的GUI API,适用于Windows,Mac和Linux。我希望有一些免费且开放的资源。你看,我还没有找到符合这个标准的东西。

GTK +很好,但它在Mac上不起作用。 Qt声称可以在所有
操作系统上工作,但它需要在该平台上重新编译


几乎所有这样的软件包(除了可能在解释器上运行的那些)

或''引擎''在所有需要的平台上实现)需要重新编译

用于不同平台 - 他们将拥有不同的操作系统调用和/或处理器

指令集。


我还没弄明白如何在不购买
商业版的情况下实现这一目标。


在您声明的情况下,商业版本不会消除每个平台单独编译的需要。它可能只需添加更多''高级''功能,也许限制更少

许可。

所以,如果有人可以推荐替代品,请
做。


面对现实。 :-)

无论如何,如果没有任何东西可以满足我的需求,我会考虑写自己的吗?


祝你好运。 :-)

如果你能提供任何关于我将如何做的信息,比如我将如何绘制GUI
小部件和那种东西,这样我就可以了编程我自己,
这将是伟大的。




这必然取决于目标平台,所以你需要

为每个平台编写单独的代码,为每个平台编译,理想情况下使用条件编译指令驻留在相同的代码库中。

这将我们带回...... :-)


-Mike


迈克......你显然以前没有使用过Qt库。是的,我

意识到无论如何都需要重新编译。


如果您阅读我的帖子而不是试图通过燃烧它来启动,那么

会意识到我并没有要求api不需要

重新编译(因为没有这样的存在)而是一个很容易就可以了。 b $ b重新编译。 Qt可以在windows上重新编译,但不是没有很多问题,而且我没有找到任何有关重新编译Qt

程序的文档。


Hello. I am looking for a GUI API that is cross platform and works
with Windows, Mac, and Linux. I was hoping for something free and open
source. You see, I have yet to find anything that fits this criteria.

GTK+ is good, but it doesn''t work on the Mac. Qt claims to work on all
Operating Systems, but it requires a recompile on that platform and
I''ve yet to figure out how to accomplish that without buying the
commerical version. So if anyone can recommend an alternative, please
do.

Anyways, if there isnt anything out there that would suit my needs, I
am thinking about writing my own maybe? If you can provide any
information on how I would do this, such as how I would draw GUI
widgets and things of that sort so I can go about programming my own,
that would be great.

Thanks

解决方案

darkhack wrote:

Hello. I am looking for a GUI API that is cross platform and works
with Windows, Mac, and Linux. I was hoping for something free and open
source. You see, I have yet to find anything that fits this criteria.



Why C++? All the top OSs support Ruby and Tk.

C++ is for hard system code. A GUI is light event-driven command and control
code.

--
Phlip
http://industrialxp.org/community/bi...UserInterfaces


<da******@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...

Hello. I am looking for a GUI API that is cross platform and works
with Windows, Mac, and Linux. I was hoping for something free and open
source. You see, I have yet to find anything that fits this criteria.

GTK+ is good, but it doesn''t work on the Mac. Qt claims to work on all
Operating Systems, but it requires a recompile on that platform
Virtually any such package (except perhaps those which run on interpreters
or ''engines'' implemented on all desired platforms) would require a recompile
for different platforms -- they''ll have different OS calls and/or processor
instruction sets.
and
I''ve yet to figure out how to accomplish that without buying the
commerical version.
In your stated case, a ''commercial'' version would not obviate the
need for separate compilation for each platform. It would probably
just add more ''advanced'' features and perhaps less restrictive
licensing.
So if anyone can recommend an alternative, please
do.
Face reality. :-)

Anyways, if there isnt anything out there that would suit my needs, I
am thinking about writing my own maybe?
Good luck with that. :-)
If you can provide any
information on how I would do this, such as how I would draw GUI
widgets and things of that sort so I can go about programming my own,
that would be great.



This necessarily depends upon the target platform, so you''d need
separate code for each platform, compiled for each platform, ideally
residing in the same code base, with conditional compilation directives.
Which brings us back to .... :-)

-Mike


Mike... you obviously havn''t worked with the Qt library before. Yes, I
realize that a recompile is required no matter what.

If you read my post rather than trying to start in by flaming it, you
would realize that I wasn''t asking for an api that didnt require a
recompile (because non such exist) but rather one that can easily be
recompiled. Qt CAN be recompiled on windows but not without a lot of
trouble, and I havn''t found any documentation on recompiling Qt
programs for the Mac.


这篇关于跨平台C ++ GUI API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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