Solved DockWudget
-
When i do doubleClick on the dock it becomes gray and the titleBar disapperars:
in the picture:the rectangle gray is the dock after that I did doubleClick
-
@vale88 You should at least post your code which is executed if you double click. Else how could anybody know why that happens?
-
#include "mainwindow.h" #include "ui_mainwindow.h" #include <QDockWidget> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); QDockWidget * dock = new QDockWidget; dock->setFloating(true); dock->show(); } MainWindow::~MainWindow() { delete ui; }
I wrote only this...I think it's a property of the dock
-
@vale88 hi. I think you need to first name ur title like this
QDockWidget * dock = new QDockWidget(tr("YourTitle"), this);
And I prefer to look into this example I think it will be very helpful for u. You can reach it using examples on Qt.
https://doc.qt.io/qt-5/qtwidgets-mainwindows-dockwidgets-example.html
-
@Yunus thanks, it works!