Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Resize handles not visible in QDockWidget
Qt 6.12 LTS is out! See what's new in the release blog

Resize handles not visible in QDockWidget

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 1.8k Views 3 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.
  • D Offline
    D Offline
    dheerajshenoy
    wrote on last edited by
    #1

    71b7edc3-21ad-4f0b-a2fc-a5ec248b99b6-image.png

    I have a QDockWidget (preview panel in the above picture). I cannot see the resize handles at all.

    PreviewPanel::PreviewPanel(QWidget *parent) : QDockWidget("Preview Panel", parent) {
    
    this->setWidget(m_stack_widget);
    
    this->setAllowedAreas(Qt::DockWidgetArea::AllDockWidgetAreas); this->setFeatures(QDockWidget::DockWidgetFeature::DockWidgetMovable |
                          QDockWidget::DockWidgetFloatable |
                          QDockWidget::DockWidgetClosable);
    ...
        }
    

    And this is how I attach the dockwidgets to my mainwindow:

    void Navi::initLayout() noexcept {
     m_layout = new QVBoxLayout(m_widget);
     m_inputbar = new Inputbar(this);
     m_statusbar = new Statusbar(this);
     m_file_panel = new FilePanel( this);
    
     m_preview_panel = new PreviewPanel(this);
     m_file_path_widget = new FilePathWidget(this);
     m_log_buffer = new MessagesBuffer(this);
     m_marks_buffer = new MarksBuffer(this);
    
     m_marks_buffer->setMarksSet(m_file_panel->getMarksSetPTR());
    
     m_file_panel->setFocus();
     m_inputbar->hide();
    
     m_layout->addWidget(m_file_path_widget);
     m_layout->addWidget(m_file_panel);
     m_layout->addWidget(m_inputbar);
     m_layout->addWidget(m_statusbar);
     m_widget->setLayout(m_layout);
    
     this->setCentralWidget(m_widget);
     this->show();
     addDockWidget(Qt::DockWidgetArea::RightDockWidgetArea, m_preview_panel);
     }
    

    Any help would be appreciated.

    Pl45m4P 1 Reply Last reply
    0
    • D dheerajshenoy

      71b7edc3-21ad-4f0b-a2fc-a5ec248b99b6-image.png

      I have a QDockWidget (preview panel in the above picture). I cannot see the resize handles at all.

      PreviewPanel::PreviewPanel(QWidget *parent) : QDockWidget("Preview Panel", parent) {
      
      this->setWidget(m_stack_widget);
      
      this->setAllowedAreas(Qt::DockWidgetArea::AllDockWidgetAreas); this->setFeatures(QDockWidget::DockWidgetFeature::DockWidgetMovable |
                            QDockWidget::DockWidgetFloatable |
                            QDockWidget::DockWidgetClosable);
      ...
          }
      

      And this is how I attach the dockwidgets to my mainwindow:

      void Navi::initLayout() noexcept {
       m_layout = new QVBoxLayout(m_widget);
       m_inputbar = new Inputbar(this);
       m_statusbar = new Statusbar(this);
       m_file_panel = new FilePanel( this);
      
       m_preview_panel = new PreviewPanel(this);
       m_file_path_widget = new FilePathWidget(this);
       m_log_buffer = new MessagesBuffer(this);
       m_marks_buffer = new MarksBuffer(this);
      
       m_marks_buffer->setMarksSet(m_file_panel->getMarksSetPTR());
      
       m_file_panel->setFocus();
       m_inputbar->hide();
      
       m_layout->addWidget(m_file_path_widget);
       m_layout->addWidget(m_file_panel);
       m_layout->addWidget(m_inputbar);
       m_layout->addWidget(m_statusbar);
       m_widget->setLayout(m_layout);
      
       this->setCentralWidget(m_widget);
       this->show();
       addDockWidget(Qt::DockWidgetArea::RightDockWidgetArea, m_preview_panel);
       }
      

      Any help would be appreciated.

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @dheerajshenoy

      Best idea: Your stylesheet hides/overrides them.


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dheerajshenoy
        wrote on last edited by
        #3

        When I tried a simple example in another project I could see the resize handles. Also, I am not making changes to the stylesheet.

        SGaistS 1 Reply Last reply
        0
        • D dheerajshenoy

          When I tried a simple example in another project I could see the resize handles. Also, I am not making changes to the stylesheet.

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          Any chance of a custom or proxy style somewhere ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dheerajshenoy
            wrote on last edited by dheerajshenoy
            #5

            Nope, there aren't any custom style except for the tableview with a delegate

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              In that case:

              Which OS are you on ?
              Which version of Qt are you using ?
              Provide a minimal compilable example showing that behavior.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • D Offline
                D Offline
                dheerajshenoy
                wrote on last edited by
                #7

                I'm on linux (arch linux to be specific), using the latest qt6 version. The project I'm working on is over 15k lines of code now and so I don't know if I can provide a minimal example

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Then there's the good old: comment out everything and add things back until it breaks.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  2

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt
                  • Unsolved