Results 1 to 3 of 3

Thread: How to drag and drop the QLabel text to the QTextEdit?

  1. #1
    Join Date
    Mar 2011
    Location
    Coimbatore,TamilNadu,India
    Posts
    382
    Thanks
    10
    Thanked 13 Times in 12 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default How to drag and drop the QLabel text to the QTextEdit?

    How to drag and drop the QLabel text to the QTextEdit? I would like to drag and drop the label with some text, that particular text should appear in the QTextEdit of the another QDialog? Is that possible?

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

    Default Re: How to drag and drop the QLabel text to the QTextEdit?

    Yes. Implement drag facilities for your label with proper mime-type and QTextEdit should accept the drop by default (provided drops are enabled in the widget).
    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.


  3. #3
    Join Date
    Mar 2011
    Location
    Coimbatore,TamilNadu,India
    Posts
    382
    Thanks
    10
    Thanked 13 Times in 12 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to drag and drop the QLabel text to the QTextEdit?

    yeah.. setTextInteractionFlags did the trick.. It is working fine....

Similar Threads

  1. QT Drag And Drop QTextEdit
    By vjkmrd123 in forum Newbie
    Replies: 2
    Last Post: 23rd December 2011, 06:43
  2. QTextEdit drag and drop problem
    By konradm in forum Newbie
    Replies: 9
    Last Post: 24th February 2011, 00:00
  3. QTextEdit Drag and Drop
    By guiQt in forum Qt Programming
    Replies: 5
    Last Post: 29th August 2010, 16:36
  4. Replies: 3
    Last Post: 10th June 2010, 15:13
  5. QTextEdit drag and drop
    By bunjee in forum Qt Programming
    Replies: 6
    Last Post: 7th February 2008, 16:41

Tags for this Thread

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.