Results 1 to 3 of 3

Thread: CAD application??

  1. #1
    Join Date
    Apr 2007
    Location
    Czech republic
    Posts
    14
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 1 Time in 1 Post

    Default CAD application??

    hallo everyone.

    i need some help. i'm trying to make application to manipulate drawings from file like DXF.
    the class for parsing input file i've done.
    as component for viewing i used QWidget, with reimplemened paintEvent(..) method.

    in all requests for painting, resizing, updating, etc. i draw all arcs and lines.. so this take a while (if the input file is huge).

    now i have pixmap, as resize event is occured, then size of pixmap is updated and all arcs and lines are drawn into it. in paintEvent(..) i'm then drawing this pixmap into displaying widget.

    i want to implement movement and turning (of parts of drawing) with mouse, but 1st and 2nd way is too slow....

    my question is: how should this be done? need i draw lines and arcs in all paintEvent(..) loops, or draw pixmap, where complete drawing is done, or.. is another way to do this?

    thanks

    honza

    ps: sorry for my english

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: CAD application??

    Take a look at The Graphics View Framework.
    J-P Nurmi

  3. #3
    Join Date
    Apr 2007
    Location
    Czech republic
    Posts
    14
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 1 Time in 1 Post

    Default Re: CAD application??

    thanks JPN

Similar Threads

  1. Start Qt application as Windows Service
    By ^NyAw^ in forum Qt Programming
    Replies: 12
    Last Post: 10th May 2008, 17:23
  2. dll + application
    By fpujol in forum Qt Programming
    Replies: 11
    Last Post: 15th April 2007, 18:37
  3. Replies: 3
    Last Post: 8th December 2006, 18:51

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
  •  
Qt is a trademark of The Qt Company.