How to add console into widget
Solved
General and Desktop
-
hi everyone,
I Using Qt Terminal Example http://doc.qt.io/qt-5/qtserialport-terminal-example.html
want to show layout like this below:
I want to show the black console , just show right side, but I don't know how to do it
the example main code is
ui->setupUi(this); console = new Console; console->setEnabled(false); setCentralWidget(console); // I don't know , what component can use, can add console
I don't know , what component can use, can add console
the code like this?
ui->widget-> ?? or otherI appreciate all the suggest. thank you
-
Hi,
What would you like to have on the left of your widget ?
-
Then once you have that widget do something like:
QWidget *centralWidget; QHBoxLayout *layout = new QHBoxLayout(centralWidget); layout->addWidget(myCoolControlPanelWidget); layout->addWidget(terminalWidget); setCentralWidget(centralWidget);
-
thank you dear SGaist
I reference
Dock Widgets Example
It's can also have this effectand finally thank you very much for you code.