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 an organization chart

Let's proceed to learn how to create an organization chart using Graphics View. An organization chart is a diagram that shows the structure of an organization and the relationship hierarchy of its employee positions. It is easy to understand a company's structure by using graphical representation; therefore it's best to use Graphics View instead of, say, a table.

This time, we need to create our own classes for the graphics items so that we can make use of Qt's event system, as well as have more control of how it's grouped and displayed.

First, create a C/C++ class by going to File | New File or Project:

Next, ...

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