Results 1 to 2 of 2

Thread: Drawing using QT

  1. #1
    Join Date
    Feb 2006
    Location
    New Delhi,India
    Posts
    226
    Thanks
    14
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Drawing using QT

    Hi,

    I want to draw object in QT but am not able to do so. I have got the line but what about the other shapes like triangle, rectangle or square and circle.
    How do i draw these shapes using QT ?
    I would be needing them in drawing a chip design.

    Thanking you,

    regards,
    Kapil

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Drawing using QT

    Hi,

    In the paintEvent of your widget declare QPainter and then use it for drawing any kind of object you like.

    Also look into painting examples that come with Qt.

Similar Threads

  1. [SOLVED] QTreeView drawing selection with icons
    By Timewarp in forum Qt Programming
    Replies: 7
    Last Post: 7th February 2013, 08:52
  2. Problems with QString
    By cyberboy in forum Qt Programming
    Replies: 2
    Last Post: 13th October 2008, 09:18
  3. Drawing
    By chethana in forum Qt Programming
    Replies: 1
    Last Post: 16th October 2007, 07:29
  4. Drawing on QWidget - strech & resize
    By kemp in forum Qt Programming
    Replies: 5
    Last Post: 22nd January 2007, 15:39
  5. Replies: 4
    Last Post: 17th January 2006, 18:46

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.