We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
您最好的选择可能是将其移植到跨平台小部件库,例如 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.
我推荐 wxWidgets 或 Qt。 它们都是成熟的、结构良好的、跨平台的,具有良好的文档和示例源代码。
I recommend wxWidgets or Qt. They are both mature, well-structured and cross-platform, with decent documentation and sample source code.
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.
你有没有想过使用Mono? 像 Paint.NET 这样的程序在 Linux 和 Windows 下运行得很好。 视窗。
Have you thought of using Mono? Programs like Paint.NET work great under Linux & Windows.