Adding a TAB "slowly"

  • I created a tabbed interface like the one in firefox browser using QTabWidget and ::insertTab.

    I'd like to implement the tab that slowly "grows" and not that appears immediately.

    A trick could be to insert the tab with no title and the adding one char at time at the title, with a little pause between each one....

  • Moderators

    Hmm... Qt Widgets weren't really designed for fluid GUIs like that.

    You could subclass the QTabWidget and reimplement its painting functions, but I'd imagine that you'd need to write lots and lots of code.

    You could "cheat" by using a QGraphicsView to draw fluid tabs (see ), and put it above a QStackedWidget to make it look like a tabbed widget? (Not sure how much effort is needed though)

Log in to reply