在跨平台的GUI中浸泡我的脚趾 [英] Dipping my toes in cross-platform GUI

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

问题描述



我不知道关于跨平台GUI编程的第一件事,所以

我想问一些简单的问题。 />

哪个库最适合喜欢便携式编程的人

和正确的高效代码,以及谁希望图书馆能够很好地适应

C ++标准库?此外,我希望该库可以在尽可能多的平台上运行(Windows,Linux,Mac,甚至是新的游戏机

,如Playstation 3和XBox 360(如果可能的话)。


我听说过wxWidgets和Qt,但我不知道他们是什么样的。

我见过跨平台的媒体播放器,VLAN;它使用wxWidgets而且

看起来不错。所有着名的程序都使用了哪些GUI库,例如Mozilla,Xilinx等的b $ b?


是否有任何跨平台的网络库

高于其他人?


-
$ b $bTomásóhéilidhe


I don''t know the first thing about cross-platform GUI programming, so
I''d like to ask a few quick questions.

Which library is best for someone who appreciates portable programming
and correct efficient code, and who''d like the library to fit well with the
C++ Standard Library? Also I''d like the library to work on as many
platforms as possible (Windows, Linux, Mac, and even the new game consoles
such as Playstation 3 and XBox 360 if possible).

I''ve heard of wxWidgets and Qt, but I haven''t a clue what they''re like.
I''ve seen the cross-platform media player, VLAN; it uses wxWidgets and it
looks good. What GUI libraries are all the well-known programs using, such
as Mozilla, Xilinx?

Is there any cross-platform networking library that stands head and
shoulders above the rest?

--
Tomás ó héilidhe

推荐答案

2008年1月7日星期一21:45:17 -0500,Victor Bazarov写道:
On Mon, 07 Jan 2008 21:45:17 -0500, Victor Bazarov wrote:

Tom ?? s ?? h ?? ilidhe写道:
Tom??s ?? h??ilidhe wrote:

>我不知道关于跨平台GUI编程的第一件事,
所以我想问几个简单的问题。

哪个库最适合喜欢便携式的人
编程和纠正高效的代码,谁希望图书馆能够很好地适应C ++标准库?我也希望图书馆能够在尽可能多的平台上工作(Windows,Linux,Mac,甚至是新的游戏机,如Playstation 3和XBox 360,如果可能的话)。 />
我听说过wxWidgets和Qt,但我不知道他们是什么样的。我见过跨平台的媒体播放器,VLAN;它使用
wxWidgets,看起来不错。什么GUI库都是使用的着名程序,比如Mozilla,Xilinx?

是否有任何跨平台的网络库站在其他地方以上?
> I don''t know the first thing about cross-platform GUI programming,
so I''d like to ask a few quick questions.

Which library is best for someone who appreciates portable
programming and correct efficient code, and who''d like the library to
fit well with the C++ Standard Library? Also I''d like the library to
work on as many platforms as possible (Windows, Linux, Mac, and even
the new game consoles such as Playstation 3 and XBox 360 if possible).

I''ve heard of wxWidgets and Qt, but I haven''t a clue what they''re
like. I''ve seen the cross-platform media player, VLAN; it uses
wxWidgets and it looks good. What GUI libraries are all the well-known
programs using, such as Mozilla, Xilinx?

Is there any cross-platform networking library that stands head and
shoulders above the rest?



我会告诉你我的经历。以它的面值来看待它。


I''ll tell you my experience. Take it at its face value.



[...]


Bravo Victor!


我兹兹宣布关于这个主题的任何进一步的讨论,包括未来

线程,关闭。


-

Lionel B

[...]

Bravo Victor!

I hereby declare any further discussion on this topic, including future
threads, closed.

--
Lionel B


" Lionel B" < me@privacy.netWrote in message

news:h6 ******************* @ newsfe1-win.ntli.net ...
"Lionel B" <me@privacy.netwrote in message
news:h6*******************@newsfe1-win.ntli.net...

2008年1月7日星期一21:45:17 -0500,Victor Bazarov写道:
On Mon, 07 Jan 2008 21:45:17 -0500, Victor Bazarov wrote:

>汤姆?s? h ?? ilidhe写道:
>Tom??s ?? h??ilidhe wrote:

>>我不知道关于跨平台GUI编程的第一件事,
所以我想问几个简单的问题。

哪个库最适合喜欢便携式的人
编程和纠正高效的代码,谁希望图书馆能够很好地适应C ++标准库?我也希望图书馆能够在尽可能多的平台上工作(Windows,Linux,Mac,甚至是新的游戏机,如Playstation 3和XBox 360,如果可能的话)。 />
我听说过wxWidgets和Qt,但我不知道他们是什么样的。我见过跨平台的媒体播放器,VLAN;它使用
wxWidgets,看起来不错。什么GUI库都是使用的着名程序,比如Mozilla,Xilinx?

是否有任何跨平台的网络库站在其他地方以上?
>> I don''t know the first thing about cross-platform GUI programming,
so I''d like to ask a few quick questions.

Which library is best for someone who appreciates portable
programming and correct efficient code, and who''d like the library to
fit well with the C++ Standard Library? Also I''d like the library to
work on as many platforms as possible (Windows, Linux, Mac, and even
the new game consoles such as Playstation 3 and XBox 360 if possible).

I''ve heard of wxWidgets and Qt, but I haven''t a clue what they''re
like. I''ve seen the cross-platform media player, VLAN; it uses
wxWidgets and it looks good. What GUI libraries are all the well-known
programs using, such as Mozilla, Xilinx?

Is there any cross-platform networking library that stands head and
shoulders above the rest?


我会告诉你我的经历。以它的面值来看待它。


I''ll tell you my experience. Take it at its face value.



[...]


Bravo Victor!


我兹兹宣布对此主题的任何进一步讨论,包括未来

线程,已关闭。


[...]

Bravo Victor!

I hereby declare any further discussion on this topic, including future
threads, closed.



:^)

:^)


"Tomásóhéilidhe" < to *@lavabit.com写在

新闻:Xn ************************** @ 194.125.133.14 :
"Tomás ó héilidhe" <to*@lavabit.comwrote in
news:Xn**************************@194.125.133.14:

>

我不知道关于跨平台GUI编程的第一件事,

所以

我想问几个简单的问题。


哪个图书馆最适合喜欢便携的人

编程

和正确的高效代码,以及谁希望库与C ++标准库很好地匹配?b $ b?另外我希望这个库可以作为很多平台工作(Windows,Linux,Mac,甚至是新游戏),如Playstation 3和PlayStation 3这样的
游戏机XBox 360(如果可能的话)。


我听说过wxWidgets和Qt,但我不知道他们是什么样的。

我见过跨平台的媒体播放器,VLAN;它使用wxWidgets和

它看起来不错。什么GUI库都是众所周知的程序

使用,比如Mozilla,Xilinx?


是否有任何跨平台的网络库? br />


高于其他?
>
I don''t know the first thing about cross-platform GUI programming,
so
I''d like to ask a few quick questions.

Which library is best for someone who appreciates portable
programming
and correct efficient code, and who''d like the library to fit well
with the C++ Standard Library? Also I''d like the library to work on as
many platforms as possible (Windows, Linux, Mac, and even the new game
consoles such as Playstation 3 and XBox 360 if possible).

I''ve heard of wxWidgets and Qt, but I haven''t a clue what they''re
like.
I''ve seen the cross-platform media player, VLAN; it uses wxWidgets and
it looks good. What GUI libraries are all the well-known programs
using, such as Mozilla, Xilinx?

Is there any cross-platform networking library that stands head
and
shoulders above the rest?



Victor很好地回答了你问题的主旨,所以我

以为我会对便携式gui-s一般提出一些想法。

你有没有注意到你通常可以从

英里远?问题是虽然他们有一个很棒的api,但是随处存在兼容的JVM,它们都是便携式的,它们都具有一定的外观和感觉,外观和感觉都没有。在任何地方都非常适合。


你提到的每个操作系统对程序的外观和感觉都有一定的期望。从菜单项的位置到浏览文件的方式,一般都在操作系统的外观中指定

指南。针对非计算机用户的应用程序

通常会遵循操作系统的指南,除非他们有充分的理由将b
偏离它。


上面提到的GUI库在制作便携式

小部件方面表现非常出色,但对于实际外观是否与b b b相匹配并感觉不一样用户正在运行。对于某些事情,

这是可以的,但对于其他人来说,这可能是你的用户

背后的真正痛苦。


所以,建议如果你真的想要正确地进行便携性,那么你将努力将你的业务逻辑从你的GUI中分离出来,并且你需要在b / b
中实现GUI使外观与用户的预期相匹配

。当然,当你这样做时,便携式GUI

库的差别就越大。如果你的应用程序没有真正的用户界面,那么你可能会在没有这个

分离的情况下离开,但至少要考虑它。


joe

Victor answered quite well the main thrust of your question, so I
thought I would throw in a few thoughts about portable gui-s in general.
Have you ever noticed that you can generally pick out a java app from a
mile away? The problem is that while they have a wonderful api that is
portable everywhere a compatible JVM exists, they all have a certain
look and feel and that look and feel doesn''t quite fit anywhere.

Each of the OS''s you mention have certain expectations for the look and
feel of a program. Everything from the location of menu items to how
you browse for files is generally specified in the OS''s look and feel
guide. Applications that are targeted toward non-computer people
generally follow the OS''s guide unless they have a good reason to
deviate from it.

The mentioned GUI libraries do a wonderful job of making portable
widgets, but are generally less fantastic about whether the actual look
and feel matches the platform the user is running. For certain things,
this is ok, but for others this can be a real pain in the backside of
your users.

So, the advice is that if you really want to do your portability right,
you will strive to separate your business logic from your GUI and
implement things in your GUI such that the look and feel matches user
expectations. Of course, by the time you do this the portable GUI
libraries make less difference. If your application doesn''t really have
much of a user interface, then you might get away without this
separation, but at least think about it.

joe


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

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