Results 1 to 2 of 2

Thread: Change focus on QToolBox

  1. #1
    Join Date
    Oct 2007
    Location
    Italy
    Posts
    172
    Thanks
    39
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Change focus on QToolBox

    Hello, i have a QToolBox with 3 widgets in.
    When i start my application the focus is set on number 0 Widget.
    I'd like to change the focus at runtime, even if no one signals is emited by QToolBox.
    Is it possibile?
    I didn't find any suggestion here
    http://doc.trolltech.com/4.2/qtoolbox.html
    thx

  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: Change focus on QToolBox

    Are you actually talking about focus or perhaps you mean the current index of QToolBox?

    In case you really are talking about focus; every widget might be able to receive focus, depending on its focus policy. Therefore QToolBox docs are not the correct place to search. QToolBox is a QWidget like all other widgets. Search QWidget docs for "focus".

    In case you are actually talking about current index of the QToolBox, I suggest trying to search QToolBox docs a bit harder.
    J-P Nurmi

Similar Threads

  1. Replies: 15
    Last Post: 26th July 2007, 21:04
  2. Tab/Enter focus problem
    By b1 in forum Qt Programming
    Replies: 4
    Last Post: 23rd October 2006, 23:34

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.