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

Qt-interest Archive, June 2007
Tab selected in QTabWidget over various look and feel


Message 1 in thread

Hello!
I have a QTabWidget working perfectly in my application.
Running the same appli over different machine, and thus over different 
"look and feel", in some cases, it is just almost impossible to see 
clearly which is the selected tab (i have 3 or 4 levels of QTabWidget, 
one inside the others).
I know it is a problem of "look and feel", but, if i want, for example 
to make my own QTabWidget with the selected tab in red, must i sub class 
QTabWidget ?
It seems that i cannot access the tabbar to change to color where i want.

Thanks a lot.


-- 
 [ signature omitted ] 

Message 2 in thread

Yes, in order to access QTabBar, you must subclass QTabWidget, then you 
can change the palette of the tab bar to do what you want.  IMHO the tab 
bar should be accessible publicly.

Max UNGER wrote:
> Hello!
> I have a QTabWidget working perfectly in my application.
> Running the same appli over different machine, and thus over different 
> "look and feel", in some cases, it is just almost impossible to see 
> clearly which is the selected tab (i have 3 or 4 levels of QTabWidget, 
> one inside the others).
> I know it is a problem of "look and feel", but, if i want, for example 
> to make my own QTabWidget with the selected tab in red, must i sub 
> class QTabWidget ?
> It seems that i cannot access the tabbar to change to color where i want.
>
> Thanks a lot.
>
>


---

This communication contains confidential information. If you are not the intended recipient please return this email to the sender and delete it from your records.

Diese Nachricht enthält vertrauliche Informationen. Sollten Sie nicht der beabsichtigte Empfänger dieser E-mail sein, senden Sie bitte diese an den Absender zurück und löschen Sie die E-mail aus Ihrem System.

--
 [ signature omitted ] 

Message 3 in thread

thank you!

--
 [ signature omitted ]