Questions tagged [mousepress]

52 questions
0
votes
1 answer

combobox steal keyboard from main window in pyqt

I'm writing a small pyqt program. I want the main window to to react to arrow movement. I added an event to my MainGui class, keyPressEvent, that handle this. The event work fine as long as I don't press certain buttons such as Key_Up or Key_Down…
Yotam
  • 10,295
  • 30
  • 88
  • 128
0
votes
1 answer

catch mouse press event on Notebook without touching tabs and their contents

I'm programming in gtkD on Funtoo Linux. I want to catch mouse press event in Notebook, but I would like to don't touch the tabs and their contents. I'm using function: addOnButtonPress () in Notebook, but after that the tabs aren't reorderable (…
user2149138
0
votes
1 answer

mousePressed event executes before keyPressed Processing

This bug has seriously ruined my week. I'm trying to create an interactive leaderboard and in it are three arrays: 1 with images and 2 with integers that I wrote as strings. I'm trying to make a keyPressed event that'll make the numbers change with…
Siya
  • 829
  • 4
  • 17
  • 29
0
votes
1 answer

Smooth line in QGraphicsScene with Qt

I need to draw curves with Qt: The user clicks on QGraphicsScene (via QGraphicsView) and straight lines are drawn between the points clicked on by the user. When the user finishes to draw straight lines (by clicking on the right button), the set of…
QLag
  • 823
  • 1
  • 13
  • 33
-1
votes
1 answer

Using mousePressed on the same object twice?

I have a program where I want a circle to change color when it's pressed on and then if it's pressed again to change back to the original color. I have managed to change it on the first click but don't know how to change it back when I click it…
-1
votes
1 answer

How to move multiple images separately using SFML mouse movements?

Below is my code which displays two images inside a window. Now by moving mouse both the images move together but how should i access them separately? int main() { // Let's setup a window sf::RenderWindow window(sf::VideoMode(640, 480), "SFML…
David Gladson
  • 547
  • 9
  • 17
1 2 3
4