Hi folks,
Here's a basic QToolBox:
How do I bring down the spacing between the tabs to zero? For example the gap between ToolBox Item 1 and ToolBox Item 2
I know this is basic, but I can't find it!
Ta,
C.
Hi folks,
Here's a basic QToolBox:
How do I bring down the spacing between the tabs to zero? For example the gap between ToolBox Item 1 and ToolBox Item 2
I know this is basic, but I can't find it!
Ta,
C.
I think this depends on the style. You'll have to alter the style. Did you tried other styles?
It's nice to be important but it's more important to be nice.
Thanks Axel,
When I use the '-style plastique' flag it does produce that nicer "tab" style tab:
But what I had in mind was something more like:
Not so much the colours and shading style, but the inter-tab spacing. Any ideas?
Thanks
Chris
Use a proxystyle to replace the code for handling the toolbox with your own code. Proxystyle is explained here:
http://doc.trolltech.com/qq/qq09-q-and-a.html#style
It's nice to be important but it's more important to be nice.
Thanks Axel, so it's not quite as trivial as I'd hoped...
Oh, the (in)famous "outlook nav bar issue" again
We found it easier to implement such a widget using a set of buttons (or frames), splitter and a stacked widget instead of a QToolBox. The buttons just cause the stacked widget page to change.
Hi again
Boredom and foolishness led me to try re-implementing QToolBox, to see if I could make something with easier access to it's layout. By some miraculous good fortune it worked, check out the pic:
toolbox_reimp.png
If anyone wants the source I'll put it up here later.
Thanks!
Chris
Of course we are interested in the source.
It's nice to be important but it's more important to be nice.
Here it is,
In summary:
I've put the QToolBoxButton into a seperate ToolBoxButton class, and moved all the internal QToolBoxPrivate stuff into the ToolBox class where I could get at it's bits. Then it was just a case of putting a in the constructor.
Cheers!
Chris
toolbox.zip
miro (14th April 2006)
Bookmarks