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. QDockWidget movable feature

QDockWidget movable feature

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

    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

    Gojir4G 1 Reply Last reply
    0
    • jipe3001J Offline
      jipe3001J Offline
      jipe3001
      wrote on last edited by
      #3

      Thks Gojir4, it's now working perfectly !

      1 Reply Last reply
      0
      • jipe3001J jipe3001

        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

        Gojir4G Offline
        Gojir4G Offline
        Gojir4
        wrote on last edited by
        #2

        Hi @jipe3001 ,

        docker_bottom = new QDockWidget("reference");
        docker_bottom->setAllowedAreas(Qt::BottomDockWidgetArea)
        docker_bottom->setFeatures(QDockWidget::NoDockWidgetFeatures)
        addDockWidget(Qt::BottomDockWidgetArea,docker_bottom);
        
        1 Reply Last reply
        3
        • jipe3001J Offline
          jipe3001J Offline
          jipe3001
          wrote on last edited by
          #3

          Thks Gojir4, it's now working perfectly !

          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