Results 1 to 1 of 1

Thread: How to achieve Alt+Tab effect ?

  1. #1
    Join Date
    May 2008
    Posts
    12
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to achieve Alt+Tab effect ?

    Hi All,

    How can I achieve similar effect like windows Alt+Tab ( I can use different key combo (Alt+E)) to traverse my focus across array of QPushbutton
    while Alt key pressed and frequently hitting 'E' key. To make final selection by leaving both keys (Alt+E) and QPushbutton which has final selection will emit click signal.

    Qt Code:
    1. QList<QPushButton*> arrayOfPushbutton;
    To copy to clipboard, switch view to plain text mode 


    Qt Code:
    1. void keyPressEvent(QKeyEvent *e)
    2. {
    3. if ((e->key()==Qt::Key_E) && (e->modifiers()==Qt::AltModifier))
    4. HandleKeyCombo();
    5. }
    To copy to clipboard, switch view to plain text mode 


    This way I am able to get Alt+E combo handle but how to traverse through QPushButtonList (procedure explained above) ?

    Thanks in advance.


    Added after 1 50 minutes:


    Please mark this issue as RESOLVED.
    Last edited by y.s.bisht; 11th November 2011 at 13:22.

Similar Threads

  1. How can i achieve an auto-resizing QStackedWidget?
    By truefusion in forum Qt Programming
    Replies: 2
    Last Post: 17th May 2010, 02:31
  2. Replies: 8
    Last Post: 16th October 2009, 14:44
  3. How to achieve showAll ?
    By Gopala Krishna in forum Qt Programming
    Replies: 5
    Last Post: 5th October 2007, 14:26
  4. How to achieve Uniformity...!!!
    By deepusrp in forum Qt Programming
    Replies: 9
    Last Post: 7th May 2007, 09:11
  5. failing to achieve desired size of a BitField structure
    By nass in forum General Programming
    Replies: 8
    Last Post: 13th February 2007, 13:29

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.