View Full Version : qtoolbox
mickey
1st June 2006, 17:02
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)
Make an exclusive button group of the "page buttons".
mickey
1st June 2006, 17:19
sorry, I referred to the page of toolbox....called itemLabel.
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.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.