Results 1 to 5 of 5

Thread: QTextBrowser

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: QTextBrowser

    Try overriding the dragMoveEvent() also.
    I got it working that way..

    Qt Code:
    1. void ListView::dragMoveEvent(QDragMoveEvent *event)
    2. {
    3. if (event->mimeData()->hasFormat("application/x-dnditemdata"))
    4. event->acceptProposedAction();
    5. }
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Feb 2006
    Posts
    60
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    21

    Default Re: QTextBrowser

    Thanks a lot,
    it's working if i implement dragMoveEvent.

    I think this is a bug in QT4.1.1 as i implemented drag and drop in other widgets (eg. QListView, QWidget, etc) all of them work without implementing dragMoveEvent.

    Is it necessary that we implement dragEvent, dragMoveEvent, dragEnterEvent, and dropEvent for all the widgets for drag and drop

    regards,
    sree

Similar Threads

  1. link from QTextBrowser to QWebView
    By lamera in forum Qt Programming
    Replies: 4
    Last Post: 12th October 2008, 15:46
  2. Replies: 1
    Last Post: 5th August 2008, 20:44
  3. QTextBrowser: Cannot open
    By veda in forum Qt Programming
    Replies: 3
    Last Post: 27th December 2007, 12:05
  4. qtextbrowser stop scrolling on append
    By tpf80 in forum Qt Programming
    Replies: 2
    Last Post: 16th September 2007, 20:28
  5. [QT4] QtextBrowser and image size (win)
    By sebgui in forum Qt Programming
    Replies: 0
    Last Post: 28th March 2006, 21:01

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.