Results 1 to 2 of 2

Thread: How to drag and drop on QGraphicsView frame

  1. #1
    Join Date
    Mar 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Symbian S60

    Question How to drag and drop on QGraphicsView frame

    I wrote a picture browser.use QGraphicsScene,QGraphicsView,QGraphicsPixItem, display some small pictures on screen. How to drag QGraphicsView class to look other picture
    I wrote three funtions :mousePressEvent(),dropEvent(),dragEnterEvent() in QGraphicsView's child class. But I don't konw how to realize these funtions........

  2. #2
    Join Date
    Mar 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default Re: How to drag and drop on QGraphicsView frame

    My project is in the Qt for symbian platform, it is similar to the image viewer, displayed a lot of small pictures on the screen,
    but the screen only shows the part pictures, I would like to view other pictures using drag and drop way.
    I know that these three functions is to realize drag and drop, :mousePressEvent(),dropEvent(),dragEnterEvent() , but I don't konw how to write code........

Similar Threads

  1. QGraphicsView Frame Rate
    By benlau in forum Qt Programming
    Replies: 11
    Last Post: 13th October 2010, 01:04
  2. Drag and Drop from QListView to QGraphicsView
    By NoRulez in forum Qt Programming
    Replies: 0
    Last Post: 20th August 2009, 14:26
  3. Drag and Drop in QT4
    By batileon in forum Qt Programming
    Replies: 4
    Last Post: 12th December 2008, 01:41
  4. Drag and drop from QTreeWidget to QGraphicsView
    By igu@na in forum Qt Programming
    Replies: 2
    Last Post: 27th August 2008, 08:24
  5. drag and drop
    By vijay anandh in forum Qt Programming
    Replies: 1
    Last Post: 12th April 2006, 11:54

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.