-
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)
-
Re: qtoolbox
Make an exclusive button group of the "page buttons".
-
Re: qtoolbox
sorry, I referred to the page of toolbox....called itemLabel.
-
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.