Results 1 to 2 of 2

Thread: How to draw fast rectangle/triangle/circle

  1. #1
    Join Date
    Sep 2007
    Location
    Pune, India
    Posts
    60
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to draw fast rectangle/triangle/circle

    Hi
    I am using GraphicsView/Scene architecture to draw 10,000 > rects/traingles/circles.
    Can anybody tell what is the fastes way to draw these items.
    Currently I am using drawRect, drawPolygaon and drawEllipse functions.
    Currently size of items is 5x5 pixel.
    Also I wanted to zoom them as well and there are lines drawn between them as well.
    Can you tell me the rendering/ zooming becomes faster.

  2. #2
    Join Date
    Nov 2008
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to draw fast rectangle/triangle/circle

    I would recommend using opengl. Although opengl is mostly used for accelerating 3d graphics, it can also accelerate your 2D graphics. I would recommend using a scenegraph, http://www.openscenegraph.org/projects/osg or http://www.ogre3d.org/, if you've never done any graphics programing before.

Similar Threads

  1. Qt Draw fast png images
    By anafor2004 in forum Newbie
    Replies: 4
    Last Post: 4th November 2008, 09:28
  2. Want to draw Curve
    By santhoshv84 in forum Qt Programming
    Replies: 1
    Last Post: 12th September 2008, 07:14
  3. want to draw points in QGraphicsScene
    By ntp in forum Qt Programming
    Replies: 2
    Last Post: 10th April 2008, 18:14
  4. Replies: 5
    Last Post: 30th March 2008, 16:53
  5. Using QGLWidget paint engine to draw regular widgtes?
    By high_flyer in forum Qt Programming
    Replies: 11
    Last Post: 9th October 2006, 12:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.