Jesper K. Pedersen
282 results
The task was simple: Add double click to a push button - with the added bonus of it not emitting the normal clicked if there is a double click. OK, this sounds trivial, right? Well no, it wasn't entirely. To get it right you have to understand quite a bit of both signals/slots and the event system. This episode explains.
Show Me Your IDE: VSCode
8 May 2024
In April 2022, we put out an April's Fools where we demonstrated the AI integration in Qt creator. Fortunately within the same year reality surpassed us, and now we are all much more productive thanks to ChatGPT. You may ask, how does it know all the stuff it knows? Well, it obviously watched Qt Widgets and More! I did, however, find that it had a few glitches, so this episode will be fixing those, but telling it about all the best practices around Qt Widgets development
Resources
14 March 2024
Validating Input
13 March 2024
Guidelines for Custom Widgets
12 March 2024
Adding a new widget to your toolbox might be as simple as subclassing from QWidget and add two child widgets plus a layout, or it might be a multi-month job where you need to polish every single pixel. In any case there are a few things to think about, and that is exactly what we will discuss in this episode.
Layout Management
8 March 2024
Item Widgets
7 March 2024
Organizer Widgets
6 March 2024
Buttons and Value Widgets
5 March 2024
Common Widgets
4 March 2024
Pointers to Qt Widgets and More
23 January 2024
Custom Widgets
22 January 2024
Buddies and Tab Order
19 January 2024
Signals/Slots from UI Take II
18 January 2024
There are three ways to connect to signals from objects in your Qt Designer UI. We've already seen the first one, which is to simply add a connect statement on the C++ side. In this episode, we will see the other two ways. One makes sense to know about for the rare cases where it is useful, the other is worth knowing about so that you don't accidentally start using it, just because you didn't think it through.
Layout in Qt Designer
17 January 2024
Hooking Your Qt Designer UI up to C++ Code
16 January 2024
Once you have created your user interfaces in Qt Designer, then you want to hook that code up with C++. In other words, you may want to get some code executed when the user chooses save in the UI, or you may want to customize the UI say disable or hide part of it, based on data coming in over the network. In this episode, you will learn how to set that up.
First Steps in Qt Designer
15 January 2024
Setting up a layout in C++ is rather cumbersome. Fortunately, Qt comes with a tool called Qt Designer, which allows you to create your UIs by simply drag and drop'ing it together. In this episode, Jesper will show you the basics of setting up a window with menu bars and toolbars, and configure a number of properties on the UI elements.
Show Me Your IDE: Visual Studio - Part 2
19 December 2023


