C++用QT做界面能做出迅雷这样复杂的界面吗?
PHP中文网
PHP中文网 2017-04-17 13:46:17
0
4
640

想开发个桌面软件,找了一圈,大部分都推荐使用QT做界面。然而,学了一个月,发现不知道是我能力不够还是qt功能有效,比如我想做类似迅雷那样复杂的界面,却发现qt提供的控件实在有限,想做复杂点个性化的界面无从下手。网上搜了一圈,也有html+css+js写界面的,如果能这样那是极好的,学习成本会减少很多。而且web写界面实在太得心应手了。目前有两个候选吧,一个htmlayout和lomox,lomox这个,好像推出几年了,官网啥东西都没有,github零星的人气,什么文档都没完善,怕是遇到问题无从下手,所以有点顾虑,现在唯一的指望就是htmllayout了。

感觉c++开发个软件,做个界面太麻烦了。有啥好办法吗

PHP中文网
PHP中文网

认证0级讲师

reply all(4)
巴扎黑

Of course qt is possible
If you know the web, electron is also a good choice

Ty80

Qt comes with webkit, which can be embedded in HTML.

If you have good skills, you can also use the built-in opengl to play self-drawing.

You can also paste pictures directly.

迷茫

Refer to this answer: https://www.zhihu.com/question/39607624

There is also Qt mentioned in this answer https://www.zhihu.com/question/23717444 that imitates 360 Security Guard.

Peter_Zhu

If you require to do it based on C++, then Qt is the best choice.
1) Cross-platform, the Linux/windows/Mac/mobile version has very small changes, so that one code can run on so many platforms, which is already amazing
2) Qt interface, familiar It is recommended to write code by hand. For beginners, it is recommended to use QtDesigner to drag and drop controls directly to create an interface prototype, add a Qt-customized Stylesheet (the syntax is similar to CSS), and add a few signal-slots. It can basically be used. Just one tool came out, and this efficiency is already very high.
3) In order to attract some users with experience in scripting language development, Qt uses QML for layout, which has greatly simplified the development process. Examples can be found in Qt’s official examples. The following one is written based on QML

4) In terms of layout, Qt has started to support layout very early. This is better than the HTML layout you know.
5) It is not recommended to use Qt’s Webkit plus HTML for development, reasons
[1] QT’s webkit has poor compatibility, and there is still a gap compared with the browser’s webkit
[2] The QT community also This method is not recommended

6) If you have strong customization requirements for styles, you can use Qt’s QGLWidget to draw complex interfaces yourself, but as far as I know, to create effects like Thunder, you basically don’t need to customize your own controls
As for where Qt is used, as far as I know, many commercial desktop software are currently using Qt, such as Oracle's VirtualBox and Alibaba Cloud's Cloud Shield

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template