Sign up for the KDAB Newsletter
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Find what you need - explore our website and developer resources
7 April 2022
In Qt Creator, there is a line edit which has a push button embedded in it for selecting tokens. How did they do that? In this episode, I'll investigate and implement a file chooser based on this idea.
0:00 Intro
0:29 Was the button a child of the lineedit?
1:32 Implementing a file chooser with the button being a child
5:30 Implementing the file choose using QLineEdit API
7:35 Adding a validator
KDAB's C++ training: https://training.kdab.com/portfolio/modern-cpp/
The example code showcased in this video is available here: https://github.com/KDAB/kdabtv/tree/master/Qt-Widgets-and-more/FileSelector
All Qt Widgets and more videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI