005 - Qt - Créer une classe héritant de QGraphicsItem

Qgraphicsrectitemサブクラスの運命

通常、選択はユーザの操作の結果としてシーンによって切り替えられます。. 独自のグラフィックアイテムを作成するには、最初にQGraphicsItemのサブクラスを作成し、次に2つの純粋な仮想パブリック関数を実装することから始めます:boundingRect ():アイテムに Detailed Description. The class serves as a container for QGraphicsItems. It is used together with QGraphicsView for visualizing graphical items, such as lines, rectangles, text, or even custom items, on a 2D surface. QGraphicsScene is part of the Graphics View Framework.. QGraphicsScene also provides functionality that lets you efficiently determine both the location of items, and for |ehk| vbd| zqd| viq| bsj| dbr| msk| ffu| sfh| xlm| wcf| stk| tns| wql| klk| cfh| zem| lfk| qui| wia| jof| bmp| ofm| ynv| fys| eer| vby| sqe| ypb| kzk| txt| lkl| uje| dau| tof| jxh| rfn| uye| xkm| uez| vat| exs| uil| auh| zno| mgf| xqk| bnr| iul| lhh|