Results 1 to 7 of 7

Thread: QProgressbar and ... Spacebar

  1. #1
    Join Date
    Jun 2006
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QProgressbar and ... Spacebar

    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?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QProgressbar and ... Spacebar

    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?
    Last edited by jpn; 11th September 2006 at 06:20. Reason: spelling error
    J-P Nurmi

  3. #3
    Join Date
    Jun 2006
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QProgressbar and ... Spacebar

    Quote Originally Posted by jpn
    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.
    Last edited by RafalR; 11th September 2006 at 17:13.

  4. #4
    Join Date
    Jan 2006
    Location
    India
    Posts
    115
    Thanks
    3
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QProgressbar and ... Spacebar

    A look at the source (or backtrace) might help.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QProgressbar and ... Spacebar

    What is QWindow?

  6. #6
    Join Date
    Jun 2006
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QProgressbar and ... Spacebar

    Quote Originally Posted by wysota
    What is QWindow?
    Aaargh... QMainWindow

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QProgressbar and ... Spacebar

    Maybe the button is set as "default"?

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.