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

Qt-interest Archive, May 2008
QTabWidget and QTabBar


Message 1 in thread

Hi  all

I want to have tabbed browsing in my application. I'm wondering if simply using QTabWidget and QTabBar is sufficient.

Specifically, I want to have a cross-shaped button on each tab for closing it. I don't know if I can that with QTabBar

Could you guys give me some suggestions?

Thx

Yifei

Message 2 in thread

Qt itself does not implement such functionality, you'd need to subclass
QTabBar.
You can take a look a
KTabBar<http://websvn.kde.org/trunk/KDE/kdelibs/kdeui/widgets/ktabbar.cpp>in
the KDE sources, it should give you a few ideas on how to implement it
yourself.

On Fri, May 9, 2008 at 2:46 PM, Yifei Li <yifli@xxxxxxx> wrote:

>  Hi  all
>
> I want to have tabbed browsing in my application. I'm wondering if simply
> using QTabWidget and QTabBar is sufficient.
>
> Specifically, I want to have a cross-shaped button on each tab for closing
> it. I don't know if I can that with QTabBar
>
> Could you guys give me some suggestions?
>
> Thx
>
> Yifei
>



-- 
 [ signature omitted ]