Creating a map display

Once you are ready, let's open up mainwindow.ui and remove the menuBar, toolBar, and statusBar as we don't need any of those in this project:

After that, drag a QQuickWidget from the widget box to the UI canvas. Then, click on the Lay Out Horizontally button located at the top of the canvas to add layout properties to it:

Then, set all the margin properties of the central widget to 0:

Next, we need to create a new file ...

Get Hands-On GUI Programming with C++ and Qt5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.