PDA

View Full Version : QProgressbar and ... Spacebar



RafalR
11th September 2006, 00:53
I have an application where I have QTimer for measuring time and QProgressBar for showing elapsed time.
I have no connections with signals from keyboard.
When I press the spacebar (other keys break the application) QProgressBar resets, and application crashes when it goes to the end.
How I can lock the spacebar or protect progressbar from pressing the spacebar?

jpn
11th September 2006, 05:54
QProgressBar has no relation to the space key of any kind.
Do you have the progress bar in a dialog? Maybe a default button gets pressed?

RafalR
11th September 2006, 14:37
QProgressBar has no relation to the space key of any kind.

And this is the problem :)


Maybe a default button gets pressed?

It is QMainWindow with only one button, but clicking this button stops the time measurement.

yogeshm02
11th September 2006, 14:46
A look at the source (or backtrace) might help.

wysota
11th September 2006, 16:15
What is QWindow?

RafalR
11th September 2006, 17:13
What is QWindow?

Aaargh... QMainWindow :)

wysota
11th September 2006, 18:40
Maybe the button is set as "default"?