 Hey everybody, it's Brian, and welcome to the 10th Qt Tutorial on C++. Today we're going to be covering splitters. So let's just go File, New Project, Qt GUI, and let's say Splitter 01, put it in the usual location and we'll say E-Test, or wherever you put your stuff, and we're going to say Q-Dialog. I'm kind of going through this really quickly. You should be a master of making these projects by now. Alright, if you've never worked with a Splitter, you have no idea what one is, move your mouse over by the toolbar or by the property bar, and you see the icon change. I don't know if the video is picking that up, but you can click and then you can resize. That's a Splitter. We're going to make one of those. So let's just, for the sake of argument here, throw out two buttons. Normally you don't split buttons, but I figured they'll be nice and visible for the video and be pretty easy to understand. Let's just run this. I wanted you to see what it looks like without a Splitter. Let's see, two buttons. Now to make a Splitter, you select those controls. You notice how these icons suddenly magically are enabled. Layout Horizontal and Splitter, and Layout Vertical and Splitter. So just click the Horizontal and Splitter, and you can select the dialogue and then choose the layout horizontally. That way they're full-size and you can get a real graphical representation of what this is going to look like. Run it, and suddenly we have a Splitter. Let's resize this window a little bigger so you can see. Now you notice how it stops at a certain point? That's the size policy of that widget. You notice how it does it over here too. Now like I said, normally you wouldn't use buttons with Splitters. You would use like a Tree View or a List View, but we haven't really gotten into those yet. But you understand what a button is. I thought I'd show you. Let's go ahead and close that. Right-click the Form, and you can go to Break Layout, or you could have done it up there I guess. If at any time you're having a hard time clicking, like you're trying to click that little layout in there, you can always do it over here in the Explorer. You can see how, let me actually use that Splitter and drag this out. You can see how you have the dialogue with the Splitter. Well you can right-click any of these and you get the same menu. If you're having trouble selecting one, you can just do that, Layout, Break Layout, and it just puts them right back on the form. Very simple, easy trick to learn. You can grab these and split them vertically, and let's just say that for the layout. Same deal. Just wanted to show you. Let's compile and run, and there's our Splitter. You notice how if you go up too much, it disappears, but you can always grab it and pull it back down. So kind of a short video, but I wanted to show you. Splitters are very useful and very easy to build. I suggest you use them in your programs to make it easier on your users. You got any questions, comments, concerns, drop me a line. This is Brian. Thanks for watching. I hope you found this video educational and entertaining.