Results 1 to 2 of 2

Thread: QPlainTextEdit and mouseMoveEvent()

  1. #1
    Join Date
    May 2009
    Posts
    52
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default QPlainTextEdit and mouseMoveEvent()

    I have to rewrite mouseMoveEvent() for a QPlainTextEdit. How can I move the text cursor to follow the mouse cursor?

  2. #2
    Join Date
    May 2009
    Posts
    52
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPlainTextEdit and mouseMoveEvent()

    Got it. I must call

    QTextEdit::mousePressEvent(event);

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.