Results 1 to 2 of 2

Thread: QPlainText

  1. #1
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    691
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QPlainText

    Hi I'm trying to implement a drag and drop from a QPlainText in a QDialog and a QWidget in a QMainWindow.
    I woud set as MimeData the text under the mouse.
    In my case the QDialog is a Track list and every row is the name of a audio track.
    I would drag a line but for that I woud get the text that's part of a singular line.

    How can I do it?

    Best Regards,
    Franco
    Franco Amato

  2. #2
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QPlainText

    I think that QListView would be much more suitable to view track list and implement drag and drop. And you have documented example: Drag and Drop -> Puzzle.
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

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.