Results 1 to 2 of 2

Thread: resizing qgraphicsitem?

  1. #1
    Join Date
    Aug 2009
    Posts
    2
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Question resizing qgraphicsitem?

    hi every one,

    i'm very new to QT,

    recently i start a project with QGraphicsScene and QGraphicsView,in that project i able to draw rectangle items and also i can able to move it and scale it,

    but the problem is how to resize the qgraphicsitem using mouse dynamically.

    so please help me


    thanks to all

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: resizing qgraphicsitem?

    You have to add handles to your item and react on their movement. Search for "qgraphicsitem handles" inside the forum and you will get answers...

    https://www.qtcentre.org/showthread.php?t=18948 or in the book of Johan Thelin you will find an example.

Similar Threads

  1. destruction of QGraphicsItem
    By killkolor in forum Qt Programming
    Replies: 2
    Last Post: 5th December 2009, 10:31
  2. Resizing user defined QGraphicsItem
    By manti_madhu in forum Qt Programming
    Replies: 0
    Last Post: 9th September 2009, 09:35
  3. Replies: 1
    Last Post: 25th February 2009, 00:34
  4. What are the methods to Handle for resizing QGraphicsItem
    By Kingofhearts_sri in forum Qt Programming
    Replies: 3
    Last Post: 19th January 2009, 12:01
  5. Resizing QGraphicsItem
    By philentropist in forum Qt Programming
    Replies: 1
    Last Post: 17th January 2007, 08:28

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.