Subject: CGAL users discussion list
List archive
- From: Alex Tsui <>
- To:
- Subject: Re: [cgal-discuss] How to draw arcs under Qt
- Date: Wed, 5 Sep 2012 21:11:06 -0700
Hi,
The class you are looking for is QPainter - it has a drawArc method that you can use:
http://qt-project.org/doc/qt-5.0/qpainter.html#drawArc
You can get access to a QPainter by implementing your own QGraphicsItem and adding it to the scene, then overriding the paint method.
Also note that CGAL has some helpful utilities for drawing common geometric objects, see here:
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/GraphicsView_ref/Class_Qt--PainterOstream.html#Cross_link_anchor_2113
--Alex
On Wed, Sep 5, 2012 at 7:47 PM, Wang Hetao <> wrote:
Hello, everyone.
I'm learning and using CGAL with Qt environment. Now I'd like to draw some
arcs. Previously I draw lines and rects with QGraphicsScene class and
QGraphcsView to show the image.
But QGraphicsScene does not provide a function called "drawArc()" or
something like that to draw arcs. So I'd like to know could I draw arcs with
Qt and how?
Thx for your reply.
--
View this message in context: http://cgal-discuss.949826.n4.nabble.com/How-to-draw-arcs-under-Qt-tp4655803.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [cgal-discuss] How to draw arcs under Qt, Wang Hetao, 09/06/2012
- Re: [cgal-discuss] How to draw arcs under Qt, Alex Tsui, 09/06/2012
Archive powered by MHonArc 2.6.18.