Results 1 to 4 of 4

Thread: keep in whatsThis mode

  1. #1
    Join Date
    Jan 2013
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Smile keep in whatsThis mode

    Hi
    i like to use whatsthis for touch application (windows + touch monitor) , bcz of small "?" button , i created a button and call "enterWhatsThisMode()" to enter help mode. but if user like to know about multiple item , it should press help button again and again.
    how we can keep application in whatsthis mode by pressing a button , and exit wahtsthis mode by pressing again help button ?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: keep in whatsThis mode

    From what you describe it seems that the help event triggers a reset of the what's this mode.

    So what you could try is to have a state flag somewhere, that indicates whether you want to be in what's this mode, and use a global event filter to track what's this responses.
    After each response you check the flag and reenter the what's this mode if necessary.

    Cheers,
    _

  3. #3
    Join Date
    Jan 2013
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Smile Re: keep in whatsThis mode

    Quote Originally Posted by anda_skoa View Post
    From what you describe it seems that the help event triggers a reset of the what's this mode.

    So what you could try is to have a state flag somewhere, that indicates whether you want to be in what's this mode, and use a global event filter to track what's this responses.
    After each response you check the flag and reenter the what's this mode if necessary.

    Cheers,
    _
    Hi
    I used a checkable button for this and instead of global event filter i derived virtual event fucntion in my application form.
    i could enter "what's this mode" but can't toggle back my button to clear flag and get out of what's this mode.i can't use keyboard (touch screen) and only i can use click event.
    one solution that may be inefficient , can you help me for better solution.
    :create new button class and on new button event handler check if what's this actived on that , then transmit a unique signal to main app for quiting what's this mode.
    result:
    simply i created a 0.5 sec timer, check if in what'sthis mode and re-enter if not in mode. first click for is ok , but second object click not shown any what'sthis mode and mouse cursor icon changes to BLOCK sign !
    Last edited by mjtooba; 25th February 2014 at 14:21.

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: keep in whatsThis mode

    What do you mean with "but can't toggle back my button"?

    Your QPushButton doesn't toggle back when you touch it again?

    Cheers,
    _

Similar Threads

  1. Force dialog to have WhatsThis title bar button
    By hvengel in forum Qt Programming
    Replies: 2
    Last Post: 11th January 2013, 22:39
  2. Custom whatsthis action
    By frank100 in forum Qt Programming
    Replies: 1
    Last Post: 26th May 2011, 20:05
  3. WhatsThis button in QMainWindow
    By _Jack_ in forum Newbie
    Replies: 8
    Last Post: 23rd October 2010, 09:58
  4. whatsThis hotkeys for a Mac?
    By wconstan in forum Newbie
    Replies: 1
    Last Post: 28th November 2009, 13:12
  5. Replies: 1
    Last Post: 2nd November 2009, 12:02

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.