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. how to make a floating dockwidget unfloating in mdiwindow
Forum Updated to NodeBB v4.3 + New Features

how to make a floating dockwidget unfloating in mdiwindow

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 285 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.
  • johnson54J Offline
    johnson54J Offline
    johnson54
    wrote on last edited by johnson54
    #1

    In Mdi window, when a dockwidget is in floating mode, I want to make it unfloating by clicking a pushbutton.
    I tried the function dockwidget->setFloating(false), but it doesnt work. however it works if the dockwidget is in mainwindow
    so is there any difference when using dockwidget in mdi window?

    1 Reply Last reply
    0
    • johnson54J Offline
      johnson54J Offline
      johnson54
      wrote on last edited by
      #2

      I think I know, I should use QMainwindow instead of QWidget

      1 Reply Last reply
      1
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        Yes QWidget does not support docking. only QMainwindow does.

        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