How to make tabs expanding???
-
I think the reason why we cannot set the first tab aligned to the left is because there is space reserved for the arrow.
You will have to experiment with the stylesheet settings untill you find something pleasing.
At least we know we shouldn't make a bug report as I suspected earlier.
-
i found something like this in the docs
expanding : bool
This property holds when expanding is true QTabBar will expand the tabs to use the empty space.
By default the value is true.
This property was introduced in Qt 4.5.Access functions:
@
bool expanding () const
void setExpanding ( bool enabled )
@could you tell me how to use it??? Its said its set to true by default. jus giving it a try
alfah
-
have a look at "this thread.":http://developer.qt.nokia.com/forums/viewthread/2879
They didn't succeed however.the setexpanding function is protected so you will have to subclass.
-
I found a solution on "Stackoverflow":http://stackoverflow.com/questions/5133846/qt4-expanding-tabs-in-qtabbar.
Obviously the -expanding- setExpanding function divides the available space like this :!http://dl.dropbox.com/u/33544011/tabbarExpanding.PNG(Tabbar expanding)!
There is always space left over on the right for another tab. Could you use that?If not you will have to live with the styles provided by your device.
-
is there a function called expanding??
I had made a quick search in Stackoverflow last day and found something like this of which i could not make head or tail of it
http://stackoverflow.com/questions/2145983/qt-making-ui-that-shrinks-and-expands
alfah
-
no I meant setExpanding sorry. I edited my post.
But you didn't anwer my question :
There is always space left over on the right for another tab. Could you use that?for the setTabIcon question see your "other post":http://developer.qt.nokia.com/forums/viewthread/8399/P30/#50381. please don't double post.
-
bq. technically, set expanding should expand the tabs right, so wont it cover up the space on the right????
Yes, we could expect that, but the Trolls decided to do it otherwise. I can imagine people like it like that to give a hint to the user he can add tabs using the program...
You could make a suggestion on the "bugtracker":https://bugreports.qt.nokia.com.