Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. QMidArea Tab options?
Qt 6.12 LTS is out! See what's new in the release blog

QMidArea Tab options?

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 765 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
    fernan2jr
    wrote on last edited by fernan2jr
    #1

    Hello!

    I'm developing a small application that contains a QMdiArea in Tabbed Mode.
    I want the tabBar to stay on top or north, and for its tabs to have a specific width and stack to the left of the area.
    Let me explain: If there's only one SubWindow, its tab occupies the entire area. When I add another SubWindow, the tabs now occupy 50/50, and so on. However, this behavior is not what I desire.
    How can I achieve this?
    It's worth mentioning that I'm using PyQt6 for development.

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      Zbigniew-Sch
      wrote on last edited by
      #2

      Hi,

      self.mdiAreaTabBar = self.findChild(QTabBar)
      typing.cast(QTabBar, self.mdiAreaTabBar).setExpanding(False)

      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
      • Unsolved