Results 1 to 4 of 4

Thread: qtoolbox

  1. #1
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default qtoolbox

    Hi I tave a toolBox with for page; every page contain some button; I'd like to know if there's a quick way to do this: page1 is visible and a its button in pressed; then I change page; i'd like button in prevoius page became not pressed;is there a qt way?thanks (i've got 5 pages with many button)
    Regards

  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: qtoolbox

    Make an exclusive button group of the "page buttons".
    J-P Nurmi

  3. #3
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default Re: qtoolbox

    sorry, I referred to the page of toolbox....called itemLabel.
    Regards

  4. #4
    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: qtoolbox

    Add the buttons to a button group with id's corresponding to the toolbox page indexes. Toolbox emits signal currentChanged(int) when the current page changes. In a slot connected to that signal, ask the button group for the corresponding button and toggle it. All other buttons are untoggled automatically if the button group is exclusive.
    J-P Nurmi

Similar Threads

  1. QToolBox and style
    By Maxilys in forum KDE Forum
    Replies: 6
    Last Post: 26th March 2006, 15:07
  2. QToolBox
    By mickey in forum Newbie
    Replies: 4
    Last Post: 11th February 2006, 15:03
  3. QToolBox and QMouseEvent
    By mickey in forum Qt Programming
    Replies: 6
    Last Post: 1st February 2006, 11:57
  4. QToolBox Formatting
    By cwalsh in forum Newbie
    Replies: 8
    Last Post: 9th January 2006, 23:08
  5. Custom Qtoolbox : some problems
    By dr23 in forum Qt Programming
    Replies: 1
    Last Post: 6th January 2006, 13:01

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.