Results 1 to 8 of 8

Thread: Custom items selection in qgraphicsscene

Hybrid View

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

    Default Re: Custom items selection in qgraphicsscene

    Hi,

    I just come across QCoreApplication::postEvent ( QObject * receiver, QEvent * event ). May it help you.

    Lykurg

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 334 Times in 317 Posts

    Default Re: Custom items selection in qgraphicsscene

    There was a FotoWall example on Qt-apps.org . Search and read the code.
    It had features of resizing and rotating graphics item

    As for ur case, moving is not a problem, graphics item can move in a scene.. you only need to enable flags for it
    as for rotating, the fotowall example might help u

  3. #3
    Join Date
    Oct 2007
    Posts
    12
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Custom items selection in qgraphicsscene

    Hi, thanks for replies!

    I can't use QCoreApplication::postEvent ( QObject * receiver, QEvent * event ) since QGraphicsItem does not herites from QObject.

    I will take a look at Fotowall, but I have already the resizing, rotating feature working on my items, what I want is to apply this feature at many items at the same time if items are colliding.

    I will try again and let you if I find a solution to my problem.

Similar Threads

  1. How could I save Items on a QGraphicsScene?
    By pinkfrog in forum Qt Programming
    Replies: 2
    Last Post: 9th January 2009, 05:03
  2. QListWidget selection custom painting problem
    By xeento in forum Qt Programming
    Replies: 3
    Last Post: 27th November 2008, 09:49
  3. Adding items to a QGraphicsScene's selection list?
    By mooreaa in forum Qt Programming
    Replies: 2
    Last Post: 1st July 2008, 20:01
  4. Cann't move movable items on custom graphics view
    By wojtekw in forum Qt Programming
    Replies: 2
    Last Post: 3rd March 2008, 21:30
  5. multiple selection of list view items
    By samirg in forum Qt Programming
    Replies: 2
    Last Post: 30th October 2007, 19:05

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.