Hello,
I'd like to move a cursor in a function plot (Qwt-Plot) using two QPushButtons (left, right) to control the movement. The cursor shall move in one direction as long as the corresponding button is pressed.
If I connect the movement of the cursor to the SIGNAL(clicked()) of the QPushButtons, the cursor moves only one step forward each time the button is clicked. The user has to click the button many times to move the cursor over a longer distance. That's not what I want. I want the cursor to keep moving as long as the QPushButton is hold down. Somehow the QPushButton should keep firing signals as long as it is pressed.
Meanwhile I think I have to reimplement the QPushButton::mousePressEvent method. But as a novice to Qt I'm not sure whether this is the right way to go. Therefore any hints or suggestions are very welcome.
Thanks,
Dirk
Bookmarks