Results 1 to 3 of 3

Thread: Drawing a custom QGraphicsItem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2012
    Location
    UK
    Posts
    17
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Drawing a custom QGraphicsItem

    Dear QtCummunity,

    I would like to draw a custom item like the attached image. Request your suggestion please.

    Qt Code:
    1. void MyItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
    2. {
    3. // Please suggest me
    4.  
    5. }
    To copy to clipboard, switch view to plain text mode 
    Attached Images Attached Images
    Last edited by saifulkhan; 12th March 2013 at 19:24.

Similar Threads

  1. Problem with derived class from QGraphicsItem and drawing
    By airglide in forum Qt Programming
    Replies: 6
    Last Post: 19th February 2013, 03:20
  2. Drawing on QGraphicsItem.
    By ommharidaas in forum Qt Programming
    Replies: 9
    Last Post: 21st September 2011, 13:40
  3. Replies: 7
    Last Post: 5th June 2011, 20:12
  4. Drawing standard widgets using a custom paint engine
    By Waywocket in forum Qt Programming
    Replies: 26
    Last Post: 21st October 2010, 20:40
  5. Custom QGraphicsItem
    By Lis in forum Qt Programming
    Replies: 1
    Last Post: 12th April 2010, 03:47

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.