Results 1 to 1 of 1

Thread: How to change mouse event routing?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2011
    Posts
    2
    Platforms
    Unix/X11 Windows

    Default How to change mouse event routing?

    I have a Qt Widget which use QWT plotting and it works fine on Qt widget application (zooming, etc.)

    But When I try to use it in Qt quick application, the zooming not work.

    the QML file:

    javascript Code:
    1. import QtQuick 1.0
    2. import Plot 1.0
    3.  
    4. Rectangle {
    5. id: page1
    6. color: "#646464"
    7. width: parent.width
    8. height: parent.height
    9. MyPlot {
    10. id: thePlot
    11. width: parent.width
    12. height: parent.height
    13. anchors.left: parent.left
    14. anchors.top: parent.top
    15. }
    16. }
    To copy to clipboard, switch view to plain text mode 

    Inside the QML file, a Qt Widget is called. The Widget is QWT plot widget which can display data and zoom in/out. But the problem is zoom not working any more. The mouse move event seems not send to the widget, it only send to QML Rectangle itself. So how can mouse event routed into widget, not the Rectangle itself?
    Last edited by wysota; 8th June 2011 at 09:49. Reason: missing [code] tags

Similar Threads

  1. how to change mouse message routing?
    By kathy in forum Qt Quick
    Replies: 0
    Last Post: 24th May 2011, 21:59
  2. Replies: 3
    Last Post: 12th May 2010, 13:11
  3. Mouse Event
    By cemshit in forum Newbie
    Replies: 1
    Last Post: 27th January 2010, 20:50
  4. How to keep the mouse event?
    By oscar721 in forum Qt Programming
    Replies: 1
    Last Post: 27th October 2009, 09:48
  5. Mouse over event
    By merry in forum Qt Programming
    Replies: 12
    Last Post: 16th May 2007, 11:13

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.