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 File Selection Dialogs

Since we have covered the topic about message boxes, let's also learn about the other type of dialog—the File Selection Dialog. The File Selection Dialog is also very useful, especially if your application frequently deals with files. It is extremely unpleasant to ask users to key in the absolute path of the file they wanted to open, so the File Selection Dialog is very handy in this kind of situation.

Qt provides us with a built-in File Selection Dialog that looks exactly the same as the one we see in our operating system, and therefore, it won't feel unfamiliar to the users. The File Selection Dialog essentially only does one thing—it lets the user pick the file(s) or folder they want and return the path(s) ...

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