Are there QGraphicsScene, QGraphicsView, QGraphicsItem ... similars for Wt ?
有QGraphicsScene, QGraphicsView, QGraphicsItem…Wt相似导线吗?
I need to draw several graphic items (an arbitrary scene) and be able to interact with items (basically mouse event response for change item's visual aspects). How can I achieve this in Wt?
我需要绘制几个图形项(任意场景),并能够与项交互(基本是鼠标事件响应,用于更改项的视觉方面)。如何在Wt中实现这一点?
1 个解决方案
#1
1
The answer is very simple: at the moment, Wt doesn't implement such functionality. You need to use the painting system and manage your items in your own code.
答案很简单:目前,Wt没有实现这样的功能。您需要使用绘图系统并在自己的代码中管理项目。
Since a lot of your functionality needs to reside on the client, to keep the interaction smooth, you'd be writing both C++ and Javascript, and you'll need to understand the internals of Wt to some degree.
由于您的许多功能需要驻留在客户机上,为了保持交互的顺畅,您需要同时编写c++和Javascript,并且您需要了解Wt的内部情况。
Wt is not "the entire Qt for the web": at the moment it is an amalgamation of selected functionality from Qt 1, Qt 2 and Qt 3, but it's about where early Qt 2 was when it comes to core functionality.
Wt不是“web的整个Qt”:目前它是Qt 1、Qt 2和Qt 3中所选功能的组合,但它是关于早期Qt 2在核心功能上的位置。
#1
1
The answer is very simple: at the moment, Wt doesn't implement such functionality. You need to use the painting system and manage your items in your own code.
答案很简单:目前,Wt没有实现这样的功能。您需要使用绘图系统并在自己的代码中管理项目。
Since a lot of your functionality needs to reside on the client, to keep the interaction smooth, you'd be writing both C++ and Javascript, and you'll need to understand the internals of Wt to some degree.
由于您的许多功能需要驻留在客户机上,为了保持交互的顺畅,您需要同时编写c++和Javascript,并且您需要了解Wt的内部情况。
Wt is not "the entire Qt for the web": at the moment it is an amalgamation of selected functionality from Qt 1, Qt 2 and Qt 3, but it's about where early Qt 2 was when it comes to core functionality.
Wt不是“web的整个Qt”:目前它是Qt 1、Qt 2和Qt 3中所选功能的组合,但它是关于早期Qt 2在核心功能上的位置。