Results 1 to 1 of 1

Thread: how to change mouse message routing?

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

    Default how to change mouse message routing?

    I have a 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.  
    10. MyPlot {
    11. id: thePlot
    12. width: parent.width
    13. height: parent.height
    14. anchors.left: parent.left
    15. anchors.top: parent.top
    16. }
    17. }
    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; 24th May 2011 at 22:51. Reason: missing [code] tags

Similar Threads

  1. Replies: 2
    Last Post: 1st January 2011, 17:00
  2. WM_LBUTTONDBLCLK message and global mouse hook
    By rittchat in forum Qt Programming
    Replies: 18
    Last Post: 10th December 2010, 04:58
  3. Routing stdout to Plain Text Edit
    By Barry79 in forum Qt Programming
    Replies: 7
    Last Post: 2nd April 2009, 13:06
  4. Somewhat OT, line routing for diagramming tool
    By pherthyl in forum Qt Programming
    Replies: 7
    Last Post: 20th October 2008, 19:23
  5. statusBar() message color change
    By mclark in forum Qt Programming
    Replies: 2
    Last Post: 7th August 2007, 23:20

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.