I accidentally clicked on the detach icon on the layer side panel of QGIS and now it floats and I cannot get it back to the side bar where I want it.

  • Drag your layer panel to left side of screen....it will fit automatically.
    – user96820
    Jul 2, 2020 at 7:53

4 Answers 4


Just double click on the layer panel window title (applies to QGIS 2 and 3).

  • It is the perfect answer. Maybe just add "panel window title" to be precise.
    – JaakL
    Aug 29, 2017 at 7:16
  • 1
    In QGIS3, it works to bring the browser and layers windows into the same panel, but the combined panel is still undocked. How does on dock the whole panel back into the left sidebar?
    – Sharad
    Jun 26, 2018 at 12:10
  • 2
    Doesn't happen with my QGIS 3.2. The browser window wouldn't dock though just by doubleclicking its window title - only the layers window does. Maybe closing the browser window before doubleclicking the layers window helps?
    – Rudi Uhl
    Jun 27, 2018 at 10:21
  • 1
    It works with the toolbox panel window (double click and it floats, double click again and it docks), but it does not work with layers style editor window. QGIS 3.8.2. Is there a way around to arrange windows docking/floating?
    – Pescariz
    Oct 3, 2019 at 10:17

Double-clicking the title bar of floating windows on MacOS will maximize the floating window instead of docking it. I tried dragging the floating window to the approximate location of where the panel was docked but it didn't work. I restarted QGIS 3.6 and dragging the window appears to work again, and other panels will "slide" out of the way to make room for dropping the floating panel.

Dropping a floating panel window into the sidebar in QGIS

  • 2
    restarting then dragging did the trick
    – Hansang
    Jul 2, 2019 at 22:49
  • thank you! does anyone know if this is filed as a bug in QGIS? Nov 25, 2019 at 15:45

Inability to dock floating "Layers" panel is still a bug in QGIS 3.10-5 (LTR) on Windows 10 1909. However, as others have suggested restarting QGIS then immediately double-clicking the "Layers" title bar successfully docked it for me.

This is reported as 2 related bugs in the QGIS GitHub issues page here:


Workaround in the QGIS console (will force-dock all panels):

for w in iface.mainWindow().findChildren(QDockWidget):

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.