Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Adding a TAB "slowly"
Forum Updated to NodeBB v4.3 + New Features

Adding a TAB "slowly"

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 934 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fp615
    wrote on last edited by
    #1

    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....

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      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 http://blog.eduardofleury.com/archives/2009/02/51 ), and put it above a QStackedWidget to make it look like a tabbed widget? (Not sure how much effort is needed though)

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved