O'Reilly logo

Qt 5 Projects by Marco Piccolino

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding the left column and the text editor

We can now add the children to the main layout. The left child will be another layout, this time, a vertical one, which will contain both the character's list and the widgets to add a new character; the right child will be the text editor. You can see the intended arrangement in the picture at the beginning of the chapter. We will drop a Text Edit (http://doc.qt.io/qt-5.9/qtextedit.html) widget and then a Vertical Layout (http://doc.qt.io/qt-5.9/qvboxlayout.html) into horizontalLayout.

While adding and removing widgets and layout components, keep in mind that in case anything goes wrong, a full undo stack is available in Qt Creator.

The next thing we want do is to have the vertical layout take up ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required