Hi wysota, and thank you.
I hope the following code helps to understand my problem. The area of the "dock" that is not covered by the "frame" works fine (shows the resizing arrows).
ResizeArrowTest
::ResizeArrowTest(QWidget *parent, Qt
::WFlags flags
){
ui.setupUi(this);
dock->setTitleBarWidget(titlebar);
titlebar->show();
dock->setAutoFillBackground(false);
this->addDockWidget(Qt::LeftDockWidgetArea, dock);
dock->setFloating(true);
frame
->setFrameShape
(QFrame::Shape::StyledPanel);
frame->show();
}
ResizeArrowTest::ResizeArrowTest(QWidget *parent, Qt::WFlags flags)
: QMainWindow(parent, flags)
{
ui.setupUi(this);
QDockWidget *dock = new QDockWidget(this);
QWidget *titlebar = new QWidget();
dock->setTitleBarWidget(titlebar);
titlebar->show();
dock->setAutoFillBackground(false);
this->addDockWidget(Qt::LeftDockWidgetArea, dock);
dock->setFloating(true);
dock->setFeatures(QDockWidget::DockWidgetMovable);
QFrame *frame = new QFrame(dock);
frame->setFrameShape(QFrame::Shape::StyledPanel);
frame->show();
}
To copy to clipboard, switch view to plain text mode
Bookmarks