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. [solved] tabifyDockWidget problem
Forum Updated to NodeBB v4.3 + New Features

[solved] tabifyDockWidget problem

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 2.3k 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.
  • B Offline
    B Offline
    broadpeak
    wrote on last edited by
    #1

    In my mainwindow, I have two dockwidget in tab mode.

    @
    tabifyDockWidget(dw1, dw2);
    @

    Later, I'd like to DIStabify these two widget.

    How can I solve it?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      broadpeak
      wrote on last edited by
      #2

      I've found a solution, but not to elegant:

      @
      removeDockWidget(dw1);
      removeDockWidget(dw2);
      addDockWidget(Qt::LeftDockWidgetArea, dw1);
      addDockWidget(Qt::RightDockWidgetArea, dw2);
      dw1->show();
      dw2->show();
      @

      First I had to remove the dockwidgets and after I had to newly add them. This will DIStabify the dockwidgets...

      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