English 中文(简体)
缩略语 观点控制
原标题:Append elements to .net maui GraphicsView Control

有可能将更多的内容(图象或图像)传给网络MAUI图表 无需复习的观念控制? 我写了一封信,将使用图表电文控制。 起初,这将是空洞的。 随着用户输入数据,将添加一个要素。 有时会根据需要增加另一个要素。 由于增加了每个要素,我必须删除图西语控制的一切内容,并重述所有内容,或者,我能否补充一个内容,而不必再复述图西语控制吗?

问题回答

缩略语 观点 当你改变了内容,而其内容仍然看得见时,需要<代码>Invalidate方法,以告知信使,它需要重整。 这种方法必须像以下法典那样,在图表中援引:

graphicsView.Invalidate();

关于更具体的细节,请参阅





相关问题
Subclassing QGraphicsItemGroup

I have system that has classes derived from QGraphicsWidget. I manage derived class objects in layouts on QGraphicsScene. Now I need a compound item that contain two or more QGraphicsWidget in it and ...

Qt - drag and drop with graphics view framework

I m trying to make a simple draggable item using the graphics framework. Here s the code for what I did so far: Widget class: class Widget : public QWidget { Q_OBJECT public: Widget(QWidget ...

QGraphicsView and eventFilter

This has been bugging me for more than two days now, so i thought i should ask. I am using Qt 4.5.3 (compiled with VC2008) on Win7. I have MyGraphicsView (inherits QGraphicsView) and MyFilter (...

take a snapshop of a qgraphicsview

I am using Qt 4.5 and a qgraphicsscene/view to show video to the user. I would like to provide a "take a snapshop" button and I am sure that there is a pretty straightforward way much simpler of ...

How to test proximity to the outline of a QGraphicsPathItem?

I m trying to test whether a given point (x, y) is located on or close to the outline of a QGraphicsPathItem. Using QGraphicsItem.contains() or .collidesWithItem() / Path() will not do: those also ...

Qt4: Scale invariant qgraphicsitem outlines

I am drawing some polygons using the Qt4 GraphicsView framework, and I allow the user to zoom in and out of the drawing. I would like the polygons to get larger and smaller as the user changes zoom ...

热门标签