Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QDockWidget movable feature



  • I am facing an issue with a QDockWidget which I would like to stay at the bottom of the screen and
    would not be able to move nor float.

    Here is the code:

    
           docker_bottom = new QDockWidget("reference");
           addDockWidget(Qt::BottomDockWidgetArea,docker_bottom);
    
    

    but I don't know how to disable the movable and floatable features.

    Thks for you usual coop



  • Thks Gojir4, it's now working perfectly !



  • Hi @jipe3001 ,

    docker_bottom = new QDockWidget("reference");
    docker_bottom->setAllowedAreas(Qt::BottomDockWidgetArea)
    docker_bottom->setFeatures(QDockWidget::NoDockWidgetFeatures)
    addDockWidget(Qt::BottomDockWidgetArea,docker_bottom);
    


  • Thks Gojir4, it's now working perfectly !


Log in to reply