Results 1 to 2 of 2

Thread: Using Drag and Drop to Set an QWidget into an QTableview

  1. #1
    Join Date
    Sep 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Using Drag and Drop to Set an QWidget into an QTableview

    Hello,
    i am trying desperatly to Drag an QTreeItem (Text) into an QTableView and if dropped it should show an QWidget (QFrame) in the dragged field.
    If i just drag and drop QStrings, its just fine, but i cant get an QWidget to show up in the destinated field of the table view.

    I already studied the official tutorials (puzzle with an pixmap instead of an table) and some basic tutorials using drag and drop, but every tutorial is just using QStrings.

    Does someone got any hints or maybe some kind of example or tutorial for something similar like that?

    greets
    mateyo

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Using Drag and Drop to Set an QWidget into an QTableview

    Hard to help you without seeing any of your code. How do you handle the drop?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QTableView Drag and Drop
    By alenyashka in forum Qt Programming
    Replies: 2
    Last Post: 23rd October 2012, 14:06
  2. Replies: 2
    Last Post: 13th October 2010, 21:51
  3. Replies: 0
    Last Post: 4th May 2010, 10:24
  4. QTableView and drag & drop
    By salvaste in forum Qt Programming
    Replies: 4
    Last Post: 18th January 2010, 16:51
  5. Drag and Drop QTableWidget and QTableView
    By scorpion11 in forum Qt Programming
    Replies: 5
    Last Post: 8th April 2008, 09:33

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.