Skip to Content
Hands-On GUI Programming with C++ and Qt5
book

Hands-On GUI Programming with C++ and Qt5

by Lee Zhi Eng
April 2018
Intermediate to advanced
404 pages
8h 27m
English
Packt Publishing
Content preview from Hands-On GUI Programming with C++ and Qt5

Creating a UI for a web browser

Next, we are going to turn this into a proper web browser. First, we need to add a few layout widgets so that we can put other widgets in place afterwards. Drag a Vertical Layout (1) onto the centralWidget and select the centralWidget from the object list. Then, click the Lay Out Vertically button (2) located at the top:

After that, select the newly added vertical layout, right-click and select Morph into | QFrame. The reason why we're doing this is that we want to place the web view widget under this QFrame object instead of the central widget. We must convert the layout widget to a QFrame (or any QWidget

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C++ GUI Programming with Qt 4

C++ GUI Programming with Qt 4

Jasmin Blanchette, Mark Summerfield

Publisher Resources

ISBN: 9781788397827Supplemental Content