Results 1 to 3 of 3

Thread: Graphics view framework resize shape capability

  1. #1
    Join Date
    Feb 2006
    Location
    US
    Posts
    173
    Thanks
    16
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Graphics view framework resize shape capability

    Hello,

    Thanks much for your time!

    Is there a way to add the ability to edit the size of a QGraphicsItem such as you can with the selection and moving capability?
    I wish there was a way to add QGraphicsItem::ItemIsResizable to:

    Qt Code:
    1. // ...
    2. item->setFlags(QGraphicsItem::ItemIsSelectable | QGraphicsItem::ItemIsMovable | ...);
    To copy to clipboard, switch view to plain text mode 
    Is the intent for Qt to eventually provide this capability to their framework?

    For now, is it required to roll your own resize controls ... even for standard shapes?

    Thanks much,
    Ben

  2. #2
    Join Date
    Jun 2007
    Posts
    23
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Graphics view framework resize shape capability

    Quote Originally Posted by brcain View Post
    Is the intent for Qt to eventually provide this capability to their framework?
    Look at this:

    Graphics View
    • State: Done
    • Reasoning: stable code for which stability and reduced risk of regressions is more important; we don’t plan on adding more features.

  3. #3
    Join Date
    Feb 2006
    Location
    US
    Posts
    173
    Thanks
    16
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Graphics view framework resize shape capability

    I'm trying to leverage the graphics framework to its fullest extent.

    Below is a snapshot of a custom shape that I have in a QGraphicsScene. What is the proper way to implement the controls to change size and rotate the shape?

    In the image are two vertices (upper-left/lower-right) for controlling the size and one for controlling the orientation (top-center) of the custom shape. What's the best approach to implement this behavior?

    graphicsControls.jpg

Similar Threads

  1. Problem about Graphics View Framework
    By FinderCheng in forum Qt Programming
    Replies: 5
    Last Post: 3rd November 2009, 08:16
  2. Problem with Graphics View Framework
    By Disperato in forum Qt Programming
    Replies: 1
    Last Post: 27th May 2009, 20:44
  3. Issues with the Graphics View Framework
    By lni in forum Qt Programming
    Replies: 8
    Last Post: 26th April 2009, 14:13
  4. about the contextMenuEvent in graphics view framework
    By bingoking in forum Qt Programming
    Replies: 1
    Last Post: 21st April 2009, 06:04
  5. Replies: 4
    Last Post: 5th August 2008, 19:55

Tags for this Thread

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.