 Hey everybody, this is Brian. Welcome to the 18th Qt tutorial with C++ and GUI programming. Today, we're going to cover the Q radio button. So let's just actually drag and drop a few of these on here. And let's just drop a button on there too. And let's just throw these in a layout, make them nice and neat. And then we'll create the forms layout. There we go. Use the infamous click me. And we'll say cats and dogs. And let's actually call this radio button one. And we'll call this radio button two. So very simple. We have two radio buttons, cats and dogs, and a button that says click me. Go ahead and select cats. And we're going to say checked and just check it. Now let me run this application and show you exactly what radio buttons do. I'm sure you've probably seen these before, but I just want to show you. It allows you to check one or the other. And you can have many, many, many of these. And as long as they're in the same control group or widget group, they will stay together. But for this example, just very simple, cats or dogs. And then we're going to right click the button, go to slot, clicked. I'm kind of going through this really fast. If you've been following along with my tutorials, you're acing this right now. You're kind of sitting here falling asleep. So we're just going to real quickly do this. If UI and we're going to say radio button one is checked. And instead of doing it now, something to actually, you know, just go into both of them here, but say Q, Q message box information. And, you know, you've seen the message box before. There's no voodoo magic going on here. And let's just say UI and we'll get the text property out of there. Let's just copy that, paste it and change the radio button one to radio button two. That way you'll see which one fires this off. Let's just save and run our work here. And when you hit click me, you see that cats is selected. When you select dogs and click me, you'll see the dogs is selected. So let's see Q radio button. Very simple. It's similar to a check box, but it's different in the fact that you can have multiple check boxes and check them individually where the radio button will force you to choose one option. So this is Brian. Thank you for watching. I hope you found this video educational and entertaining.