Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to add console into widget
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 other
I appreciate all the suggest. thank you
What would you like to have on the left of your widget ?
Because I want to add control panel on left side
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
Dock Widgets Example
It's can also have this effect
and finally thank you very much for you code.