Results 1 to 7 of 7

Thread: protected QGraphicsObject

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 453 Times in 435 Posts
    Wiki edits
    15

    Default Re: protected QGraphicsObject

    Qt Code:
    1. _scene->addItem(my_object->getBaseGraphicsObject());
    To copy to clipboard, switch view to plain text mode 
    This one looks nice, and avoids odd looking cast operator . I don't think this will cause any other problems related to graphics scene/view, it should be good as long as the handle to QGraphicsObject* is available to scene.

  2. The following user says thank you to Santosh Reddy for this useful post:

    stefan (19th August 2011)

Similar Threads

  1. Replies: 1
    Last Post: 28th July 2011, 11:28
  2. Replies: 0
    Last Post: 5th January 2011, 18:17
  3. Virtual protected and private var
    By maddog_fr in forum Qt Programming
    Replies: 4
    Last Post: 19th November 2010, 16:14
  4. Replies: 1
    Last Post: 24th October 2010, 02:40
  5. About Password Protected Files:
    By vermarajeev in forum Qt Programming
    Replies: 7
    Last Post: 16th February 2007, 14: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
  •  
Qt is a trademark of The Qt Company.