Results 1 to 5 of 5

Thread: SplashScreen and Event handling???

  1. #1
    Join Date
    Apr 2008
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default SplashScreen and Event handling???

    I need to hide the splash screen window on any keyboard key is pressed .How shall I do.?

  2. #2
    Join Date
    Oct 2007
    Location
    Cracow
    Posts
    56
    Thanks
    1
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: SplashScreen and Event handling???

    what about subclass QSplashScreen and reimplement keyPressEvent ?

  3. #3
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: SplashScreen and Event handling???

    Implement a QAction for the key u want to be pressed.And call a slot when that action is trigerred.
    In the slot, display ur splash screen

  4. #4
    Join Date
    Apr 2008
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: SplashScreen and Event handling???

    what about subclass QSplashScreen and reimplement keyPressEvent ?
    Ans: I've done in that way, but the keypress event is not been triggered when the splashscreen is displayed.
    Rather on pressing the keys the letters or the event is occured on the terminal from where the application is started.

  5. #5
    Join Date
    Apr 2008
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: SplashScreen and Event handling???

    Implement a QAction for the key u want to be pressed.And call a slot when that action is trigerred.
    In the slot, display ur splash screen
    Ans: But I need to trigger this action on ANY key is pressed. And when the Splash screen is displayed.

    NB:I need to HIDE the splashscreen on the event occurs.

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.