Linux图形用户界面开发

发布于 2024-07-05 05:39:00 字数 1560 浏览 7 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

方觉久 2024-07-12 05:39:00

您最好的选择可能是将其移植到跨平台小部件库,例如 wxWidgets,这将使您可以移植到 wxWidgets 支持的任何平台。

区分 Gnome 库和 GTK、KDE ​​库和 Qt 也很重要。 如果您编写代码来使用 GTK 或 Qt,那么它对于任何桌面环境的用户都应该可以正常工作,包括 XFCE 等不太流行的环境。 如果您使用其他 Gnome 或 KDE 特定的库来执行与小部件无关的任务,您的应用程序在桌面环境之间的可移植性将较差。

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.

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.

亢潮 2024-07-12 05:39:00

我推荐 wxWidgetsQt。 它们都是成熟的、结构良好的、跨平台的,具有良好的文档和示例源代码。

I recommend wxWidgets or Qt. They are both mature, well-structured and cross-platform, with decent documentation and sample source code.

晨光如昨 2024-07-12 05:39:00

Gnome 应用程序可以在 KDE 桌面上运行,反之亦然; 你不会把任何人拒之门外。 就工具包而言,它是相当主观的。 所有工具包都是相当跨平台的。 如果您不是开源的,那么 GTK+ 将是更便宜的选择,因为 Qt 仅免费供开源使用,而 GTK+ 是 LGPL。

Gnome apps work on KDE desktops and vice versa; you won't be locking anyone out. As far as toolkits go, it's fairly subjective. All of the toolkits are fairly cross-platform. If you're not open source, then GTK+ would be the cheaper option, as Qt is only free for open source use, whereas GTK+ is LGPL.

叹梦 2024-07-12 05:39:00

你有没有想过使用Mono? 像 Paint.NET 这样的程序在 Linux 和 Windows 下运行得很好。 视窗。

Have you thought of using Mono? Programs like Paint.NET work great under Linux & Windows.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文