windows 如何在 QT 中开发外观漂亮、视觉现代的应用程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7694410/
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
How to develop nice-looking, visually modern applications in QT?
提问by komorra
I'm wondering how to develop visually modern, with attractive GUI applications in QT. When I run QT Creator and start new project, the GUI looks very basic and "pure", just like simple win32 apps. But look for example at Allegorithmic Substance Designer 2, where GUI looks somehow similar to WPF. There are many other applications with nice-looking GUI. So, the question is: how to do this? Is there any extension/library to QT, which provide richer GUI experience? Or it must be developed from scratch? Thanks for replies in advance.
我想知道如何在 QT 中开发具有吸引力的 GUI 应用程序的视觉现代感。当我运行 QT Creator 并开始新项目时,GUI 看起来非常基本和“纯”,就像简单的 win32 应用程序一样。但是以 Allegorithmic Substance Designer 2 为例,其中的 GUI 看起来有点类似于 WPF。还有许多其他具有漂亮 GUI 的应用程序。所以,问题是:如何做到这一点?QT有没有扩展/库,提供更丰富的GUI体验?还是必须从头开发?感谢您提前回复。
回答by Clare Macrae
As well as Nano's answer, I think it would be worth your while to search around for any Qt stylesheets others have made.
除了 Nano 的回答之外,我认为搜索其他人制作的任何 Qt 样式表都是值得的。
For example, this onethat mimics Microsoft Office.
例如,这个模仿 Microsoft Office 的软件。
Unfortunately, there doesn't seem to be very many of them available.
不幸的是,似乎没有很多可用的。
I found these useful links, some of whose links may give some ideas:
我找到了这些有用的链接,其中一些链接可能会提供一些想法:
Another idea might be to search for example qml files in Google Code Search. This search for .qmlfiles has plenty of hits. Before using any of them, you would obviously need to check its license.
另一个想法可能是在Google Code Search 中搜索例如 qml 文件。这种对 .qml文件的搜索有很多命中。在使用其中任何一个之前,您显然需要检查其许可证。
回答by Nano Taboada
Have you tried Nokia's Qt Creator? If you're looking for something "similar" to WPF I assume you're referring to its declarative nature, QMLbeing XAML's counterpart in such regard.
你试过诺基亚的Qt Creator吗?如果您正在寻找与 WPF“类似”的东西,我假设您指的是它的声明性,QML在这方面是 XAML 的对应物。