Jesper K. Pedersen
269 results
So, you are using Qt Designer to create your user interfaces? Great! But how do you get your own custom widgets in there? There are two ways, create a plugin for Qt designer or promote an existing widget. In this episode we will see both.
Making your applications work without having to use the mouse all the time, helps improve its usability quite a bit. There are two ways in Qt to help with that: accelerators and tab order. This episode will show you both.
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.
In this episode, Jesper will go through how to set up a layout in Qt Designer.
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.
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.
In this episode, Alistair Baxter and Jesper will continue their discussion on Visual Studio and focus on how well it handles Qt, more specifically, Qt macros and Qt tools like moc and Qt Designer.
A reasonable choice of IDE when developing Qt code is Qt Creator. But there are other IDEs out there! An interesting alternative on windows is Visual Studio. In this episode, Alistair Baxter will join Jesper for a show of his favorite features from Visual Studio.
This month, we began adding our Introduction to Qt Widgets series to YouTube. It's the same content regularly taught around the world by KDAB engineers. The best part? You're getting it absolutely free.
This episode introduces you to the event handling system of Qt and shows two examples of it: preventing windows from being closed when the user hits the cross; a simple paint program where you paint by dragging the mouse around
In this second episode on understanding what goes on behind the scene, Jesper will debug his way into an application using signals and slots to see the flow of information. He also introduces you to the GammaRay tool.
Have you ever wondered what Q_OBJECT really is? How "public slots" can be valid C++ syntax, what happens when you call emit, and whether signal emission results in the slot being executed asynchronously? Watch this episode to get all those answers.
In this episode, we will show you how to add signals and slots to your own classes. The video includes: Custom Slots, Custom Signals, Compiling with moc.
With Qt's signals & slots mechanism, you can also connect to a lambda expression. In this episode, you will learn how to do that, and equally important, what the pitfalls are when you do that.
Before Qt5 was released, the signal & slots mechanism was somewhat different. This episode will tell you what it looked like back then. There are two purposes to that: (1) You will likely find some references on stack overflow telling you something using that syntax, and (2) it helps enlighten the story about the Qt5 way of doing it.
Qt's signal and slots system is a cornerstone feature enabling object communication throughout Qt applications. This episode introduces the fundamental concepts of signals and slots, demonstrates how to connect signals to slots for event handling and data flow, and covers the different connection methods available for establishing these communication pathways between objects.
One of the most important classes in Qt is without a doubt QWidget, which is at the core of any UI (in the widgets world). QWidget has two purposes: (1) being the super class for any widgets, and thus, providing the API's for mouse, key, and focus handling among a lot of other things, and (2) being a "canvas" where you can lay out other widgets on.
In this video, we will learn what the responsibility of the class QObject is. We will most noticeably look at the parent/child relationship. In this context we will learn what should be allocated using new and what shouldn't.
In this episode, Jesper will show you how to navigate the Qt help text most efficiently. In addition, he will also show how you get to the header files.
In this episode, we will compile the application using both CMake and QMake.