Resize handles not visible in QDockWidget
-
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.
-
Best idea: Your stylesheet hides/overrides them.
-
When I tried a simple example in another project I could see the resize handles. Also, I am not making changes to the stylesheet.
-
Hi,
Any chance of a custom or proxy style somewhere ?
-
Nope, there aren't any custom style except for the tableview with a delegate
-
In that case:
Which OS are you on ?
Which version of Qt are you using ?
Provide a minimal compilable example showing that behavior. -
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
-
Then there's the good old: comment out everything and add things back until it breaks.