Results 1 to 11 of 11

Thread: Problem with push button navigation

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Problem with push button navigation

    When you press the tab key it causes focus to move to the next widget. So I'm asking where does the focus move to during the action you described here:
    but when i press tab again it takes 5 to 6 tabs to go on to next push button.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Feb 2011
    Posts
    29
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi
    Platforms
    Unix/X11 Windows

    Default Re: Problem with push button navigation

    Hi

    I have four push buttons. I have set tab order of all four of them.

    setTabOrder(pushButton,pushButton_2);
    setTabOrder(pushButton_2,pushButton_3);
    setTabOrder(pushButton_3,pushButton_4);
    setTabOrder(pushButton_4,pushButton);

    When i press tab first it selects fist push button, but when i press tab focus just disappears.
    And after pressing 4 to 5 tabs it selects second push button. Than if i press tab again it directly selects push button 3 and so on. But between first and second push button it takes more tabs. Can you please tell why these happen.

    One more thing i want to tell. I have one form on that i have take stack widget and on that its graphics view and after that i have put push buttons.

    So because of these problem occurs or what?

    Please reply me.

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

    Default Re: Problem with push button navigation

    Quote Originally Posted by keyurparekh View Post
    When i press tab first it selects fist push button, but when i press tab focus just disappears.
    It doesn't dissapear. It moves to another widget. It might not be one of the push buttons you have. In doubt check QApplication::focusWidget().
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Feb 2011
    Posts
    29
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi
    Platforms
    Unix/X11 Windows

    Default Re: Problem with push button navigation

    Hi
    thanks so much for your support.
    I have solve the problem......
    once again thanks so much........

  5. #5
    Join Date
    Feb 2011
    Posts
    29
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi
    Platforms
    Unix/X11 Windows

    Default Re: Problem with push button navigation

    Hi

    I have attach one png file here. I want to create screen like in that image. how can i create menus

  6. #6
    Join Date
    Jun 2011
    Posts
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Problem with push button navigation

    hi ,

    Please try this :
    u have any widget other than push button like(graphic view)?
    If u have widget other than push button than go every widget in .ui file and set no focus property in the property of that particular widgets.
    all the push button has strong focus property..

    kinjal.

Similar Threads

  1. Bitmap on Push Button in QT 3
    By Gokulnath in forum Newbie
    Replies: 2
    Last Post: 12th January 2011, 07:34
  2. [QT]Push button-no action
    By nqn in forum Newbie
    Replies: 4
    Last Post: 30th May 2010, 19:08
  3. A very small push button
    By Gnurou in forum Qt Programming
    Replies: 2
    Last Post: 15th November 2009, 03:04
  4. problem in Displaying image on push button
    By durgarao in forum Qt Tools
    Replies: 4
    Last Post: 2nd January 2009, 10:27
  5. Push Button problem!!
    By Seema Rao in forum Qt Programming
    Replies: 1
    Last Post: 22nd April 2006, 16:31

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
  •  
Qt is a trademark of The Qt Company.