Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, February 2007
Problem with QTabBar's size


Message 1 in thread

Hello,

I'm using QT 4.2 for my development.

I have a problem with the QTabBar. If I resize the window that contains the
QTabBar, the tab's also grow and shrink.

How can I change/disable that behaviour?

http://img443.imageshack.us/my.php?image=smallki6.png

http://img171.imageshack.us/my.php?image=largerr1.png

Best regards,
Konrad

Message 2 in thread

Konrad Foegen wrote:
> Hello,
> 
> I'm using QT 4.2 for my development.
> 
> I have a problem with the QTabBar. If I resize the window that contains 
> the QTabBar, the tab's also grow and shrink.
> 
> How can I change/disable that behaviour?

You can't. I filed a bug against this some months ago (it wreaks havok 
with my interface as well). This new behavior (which wasn't in 4.1) 
seems to be hard-coded into the tab layout. I argued at length with an 
engineer about this who didn't seem to "get" my concern.

It would be easy enough to add a flag to the tab bar to control this 
behavior (or, better yet, using a style hint), but I try to avoid 
messing with the qt code given the frequency they change it.

Feel free to go look up my bug using the bug search and add your own 
comments to it.

> http://img443.imageshack.us/my.php?image=smallki6.png
> 
> http://img171.imageshack.us/my.php?image=largerr1.png 
> <http://img171.imageshack.us/my.php?image=largerr1.png>
> 
> Best regards,
> Konrad


-- 
 [ signature omitted ] 

Message 3 in thread

Thanks for your answer.

The problem does only exist at QTabBar - QTabWidget works fine.
And that surprises me because I thought that QTabWidget uses QTabBar
internally.

On 2/12/07, Paul Miller <paul@xxxxxxxxxx> wrote:
>
> Konrad Foegen wrote:
> > Hello,
> >
> > I'm using QT 4.2 for my development.
> >
> > I have a problem with the QTabBar. If I resize the window that contains
> > the QTabBar, the tab's also grow and shrink.
> >
> > How can I change/disable that behaviour?
>
> You can't. I filed a bug against this some months ago (it wreaks havok
> with my interface as well). This new behavior (which wasn't in 4.1)
> seems to be hard-coded into the tab layout. I argued at length with an
> engineer about this who didn't seem to "get" my concern.
>
> It would be easy enough to add a flag to the tab bar to control this
> behavior (or, better yet, using a style hint), but I try to avoid
> messing with the qt code given the frequency they change it.
>
> Feel free to go look up my bug using the bug search and add your own
> comments to it.
>
> > http://img443.imageshack.us/my.php?image=smallki6.png
> >
> > http://img171.imageshack.us/my.php?image=largerr1.png
> > <http://img171.imageshack.us/my.php?image=largerr1.png>
> >
> > Best regards,
> > Konrad
>
>
> --
> Paul Miller | paul@xxxxxxxxxx | www.fxtech.com | Got Tivo?
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>

Message 4 in thread

Konrad Foegen wrote:
> Thanks for your answer.
> 
> The problem does only exist at QTabBar - QTabWidget works fine.
> And that surprises me because I thought that QTabWidget uses QTabBar 
> internally.

It does, but it seems to be behaving consistently for me with QTabWidget 
as well.


> On 2/12/07, *Paul Miller* <paul@xxxxxxxxxx <mailto:paul@xxxxxxxxxx>> wrote:
> 
>     Konrad Foegen wrote:
>      > Hello,
>      >
>      > I'm using QT 4.2 for my development.
>      >
>      > I have a problem with the QTabBar. If I resize the window that
>     contains
>      > the QTabBar, the tab's also grow and shrink.
>      >
>      > How can I change/disable that behaviour?
> 
>     You can't. I filed a bug against this some months ago (it wreaks havok
>     with my interface as well). This new behavior (which wasn't in 4.1)
>     seems to be hard-coded into the tab layout. I argued at length with an
>     engineer about this who didn't seem to "get" my concern.
> 
>     It would be easy enough to add a flag to the tab bar to control this
>     behavior (or, better yet, using a style hint), but I try to avoid
>     messing with the qt code given the frequency they change it.
> 
>     Feel free to go look up my bug using the bug search and add your own
>     comments to it.
> 
>      > http://img443.imageshack.us/my.php?image=smallki6.png
>      >
>      > http://img171.imageshack.us/my.php?image=largerr1.png
>      > < http://img171.imageshack.us/my.php?image=largerr1.png>
>      >
>      > Best regards,
>      > Konrad
> 
> 
>     --
>     Paul Miller | paul@xxxxxxxxxx <mailto:paul@xxxxxxxxxx> |
>     www.fxtech.com <http://www.fxtech.com> | Got Tivo?
> 
>     --
>     To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
>     <mailto:qt-interest-request@xxxxxxxxxxxxx> with "unsubscribe" in the
>     subject or the body.
>     List archive and information: http://lists.trolltech.com/qt-interest/
> 
> 


-- 
 [ signature omitted ] 

Message 5 in thread

On 12.02.07 15:25:46, Konrad Foegen wrote:
> The problem does only exist at QTabBar - QTabWidget works fine.
> And that surprises me because I thought that QTabWidget uses QTabBar
> internally.

QTabWidget does use QTabBar (at least in Qt4), so I guess whatever your
problem is, the answer might be in the qtabwidget source code.

Andreas

-- 
 [ signature omitted ]