简体   繁体   English

QtQuick或QGraphicsView

[英]QtQuick or QGraphicsView

When I should use QGraphicsView and When QtQuick is a better choice? 什么时候应该使用QGraphicsView和什么时候QtQuick是更好的选择?
Which is better choice if I want high performance application with highly customized widgets (visual of widgets and its behaviors)? 如果我想要带有高度自定义的小部件(小部件及其行为的外观)的高性能应用程序,哪个是更好的选择?

:? :?

For high performances, you should use Qt and C++ instead of QML and JavaScript. 为了获得高性能,您应该使用Qt和C ++而不是QML和JavaScript。 So let's use a QGraphicsView in this case. 因此,在这种情况下,让我们使用QGraphicsView

However, creating a widget is much more easier and faster with QML than QtWidget. 但是,使用QML创建小部件比使用QtWidget更加容易和快捷。 It may be great for making prototypes or for interfaces which are made by designers. 这对于制作原型或设计师设计的界面可能非常有用。 QML is a convinient solution if you do not need high performances. 如果您不需要高性能,则QML是一种便捷的解决方案。 You can also have a look at this article to improve the QML performances in your program 您也可以查看本文以改善程序中的QML性能

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM