Linux GUI开发 [英] Linux GUI development

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

问题描述

我有一个大型的GUI项目,我想移植到Linux。
在Linux中用于GUI编程的最推荐的框架是什么?是否可以使用KDE / Gnome等框架来实现这个目标,或者最好使用比X更通用的东西?

I have a large GUI project that I'd like to port to Linux. What is the most recommended framework to utilize for GUI programming in Linux? Are Frameworks such as KDE / Gnome usable for this objective Or is better to use something more generic other than X?

我觉得如果我选择Gnome或KDE之一,我正在关闭一个Linux市场的一个大块,选择一个在另一个市场。 (是的,我知道有重叠)

I feel like if I chose one of Gnome or KDE, I'm closing the market out for a chunk of the Linux market who have chosen one over the other. (Yes I know there is overlap)

有更好的方法吗?或者,我必须创建2个完整的GUI应用程序,以接近100%的覆盖率?

Is there a better way? Or would I have to create 2 complete GUI apps to have near 100% coverage?

没有必要有一个跨平台的解决方案,也将在Win32上工作。 / p>

It's not necessary to have a cross-platform solution that will also work on Win32.

推荐答案

最好的办法是将它移植到跨平台的小部件库,例如wxWidgets ,这将给您wxWidgets支持的任何平台提供便携性。

Your best bet may be to port it to a cross-platform widget library such as wxWidgets, which would give you portability to any platform wxWidgets supports.

同样重要的是区分在Gnome库和GTK之间,以及类似的KDE库和Qt。如果你编写代码使用GTK或Qt,它应该适用于任何桌面环境的用户,包括不太受欢迎的像XFCE。如果您使用其他Gnome或KDE特定的库来执行非窗口小部件相关的任务,您的应用程序在桌面环境之间的可移植性会降低。

It's also important to make the distinction between Gnome libraries and GTK, and likewise KDE libraries and Qt. If you write the code to use GTK or Qt, it should work fine for users of any desktop environment, including less popular ones like XFCE. If you use other Gnome or KDE-specific libraries to do non-widget-related tasks, your app would be less portable between desktop environments.

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

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