windows 一个好的(免费的)VCL GUI 替代品

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/816714/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 12:23:46  来源:igfitidea点击:

A good (and free) VCL GUI alternative

c++windowsuser-interfacec++buildervcl

提问by Saulius ?emaitaitis

I've got a project with a rather messy VCL codebase built on Borland C++ Builder 6. I intend to rewrite most parts of it since it's hardly maintainable in it's current state. I'm looking for a good and free alternative to VCL. It is a Windows-only closed source commercial project.

我有一个基于 Borland C++ Builder 6 构建的具有相当混乱的 VCL 代码库的项目。我打算重写其中的大部分内容,因为它在当前状态下几乎不可维护。我正在寻找 VCL 的良好且免费的替代品。它是一个仅限 Windows 的闭源商业项目。

So main requirements are:

所以主要要求是:

  1. Free for commercial closed-source projects
  2. Manage Windows GUI. Other components (db links and stuff) not required
  3. Be extendible (so one could write my own GUI components based on existing ones)
  4. Be STL-friendly.
  1. 免费用于商业闭源项目
  2. 管理 Windows GUI。不需要其他组件(数据库链接和东西)
  3. 可扩展(因此可以根据现有组件编写自己的 GUI 组件)
  4. 对 STL 友好。

Please post your suggestions, with pros and cons if possible.

如果可能,请发表您的建议,并附上优点和缺点。

EDIT

编辑

Thanks for all the answers. I've decided to go with Qt as it has some other nice features like Qt Linguist translation suite.

感谢所有的答案。我决定使用 Qt,因为它还有其他一些不错的功能,例如 Qt Linguist 翻译套件。

回答by mghie

Check out wxWidgets. Its design is a little old-fashioned, but when you start with it and use the most recent version it should be quite STL friendly. It is free for commercial use, and even when you don't intend to use its cross-platform capabilities it may be a good library for you to write a Windows GUI.

查看wxWidgets。它的设计有点老式,但是当您开始使用它并使用最新版本时,它应该对 STL 非常友好。它可免费用于商业用途,即使您不打算使用其跨平台功能,它也可能是您编写 Windows GUI 的好库。

回答by ismail

Try Qt. Its LGPL so it can be used in closed source software. It provides widgets, networking functions, database access, web rendering via WebKit, animations and many more. Its documentation is one of the best of its kind.

试试Qt。它的 LGPL 所以它可以用在闭源软件中。它提供小部件、网络功能、数据库访问、通过 WebKit 的 Web 渲染、动画等等。它的文档是同类文档中最好的之一。

回答by Sadegh

You could use QTor wxwidgets.

您可以使用QTwxwidgets

回答by Sadegh

As pointed by mghie

正如mghie所指出的

wxWidgets is a great library. It has a lot of bindings (.net, lua-my favorite etc) and it has gui editor. Although it generates rather obscure code, you can find simply split ui \ it`s functionality.

wxWidgets 是一个很棒的库。它有很多绑定(.net、lua-我最喜欢的等等)并且它有 gui 编辑器。尽管它生成了相当晦涩的代码,但您可以发现简单地拆分 ui \ it 的功能。

回答by Francis

What you need may be the free version of BCB: Turbo C++ Explorer, or try .NET CLR / WinForms.

您需要的可能是 BCB 的免费版本:Turbo C++ Explorer,或者尝试 .NET CLR / WinForms。

WxWidgets is simply a GUI library. Qt is a platform, but still far from a RAD framework like VCL. The only competitive is MFC, and unfortunately it's not free. In some point of view, .NET+CLR is the successor of VCL - well, maybe you can also try that - if you don't mind it requires the huge .NET framework.

WxWidgets 只是一个 GUI 库。Qt 是一个平台,但离 VCL 这样的 RAD 框架还差得很远。唯一有竞争力的是 MFC,不幸的是它不是免费的。从某种角度来看,.NET+CLR 是 VCL 的继承者——好吧,也许你也可以试试——如果你不介意它需要庞大的 .NET 框架。

If you just want a "good and free solution" and don't mind sticking with VCL, use TC++Exp.

如果您只是想要一个“好的免费解决方案”并且不介意坚持使用 VCL,请使用 TC++Exp。

回答by no_one

You might want to look at Qt Project

你可能想看看Qt 项目