-------- Original-Nachricht -------- > Datum: Tue, 28 Sep 2010 03:02:06 -0700 (PDT) > Von: go canal <[email protected]> > An: [email protected] > Betreff: [Qt-jambi-interest] how to add a \'+\' or \'x\' to the Tab bar ?
> Hi, > Would like to know how to add a '+' or 'x' to the tab bar. Ideally I want > to add > image button at the right most position of the tab bar together with a > title. If > I click '+', then a new tab is created; 'x' to close the current tab. > thanks, > canal > > > > Hi! Have looked at QTabWidget#setCornerWidget? That seems to do exactly what you want. If you don't use a complete QTabWidget, but only a QTabBar, I'd suggest you put that tab bar and your widgets inside a common parent layout or widget to place them side by side. Regards, Gregor -- GMX DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 für nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl -- Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief! Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail _______________________________________________ Qt-jambi-interest mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
