 All right, so far we've been working with Q plane text edit and well, it's pretty plain We're gonna switch gears and we're gonna work with what's called the Q text edit class What's the fundamental difference here? Well Q text edit is a class that provides a widget that is used for both editing plane and Rich text. Whoa and rich text. What does that mean? That means we can do things like bold italic underline insert tables Actually custom widgets pictures, whatever we want Admittedly because this is a beginner's course We're gonna scratch the surface of what this thing can do, but we're gonna spend this entire section building a fully functional rich text editor All right first things first We have a very bare application. This is just a Q main window Already gone through and did the new next next next. There's absolutely nothing in this whatsoever. It's just very very basic This video is going to be all about setting up the user interface and to be a brutally honest You could probably fast forward or skip through most of this is it's just gonna be me wiring up the plumbing But if you want to watch feel free so first things first We need to go through and we need to add some images here So I'm gonna paste those and they're a lot of them. So this is what I mean by We're really just scratching the surface. We can do things like find replace font Justification bold italic underline you name it zoom in zoom out. It's pretty cool actually So let's go in here add new Next next and let's go prefix Slash files just gonna add all those images in there Give that a good build just in case Now I'm gonna say file And we're gonna go edit You know, so I switch gears usually I just start drilling down and I'm actually gonna slow it down just to smidge here So this is really what you'd call a standard editing format for menus We've got file edit view and you can see there's file edit They don't have a view here up in Qt creator But you can see how there's usually a specific order and that's you know really up to you on how you want to Do that, but it's It's a good standard that you should really adhere to All right, so we've got file edit view Texting about so let's hit here and go new And let's say exit Let's grab that separator move it up one And let's actually add another separator move that between the new and open And we can go ahead and we can flesh these out right now And there is a lot of stuff in here So I'm gonna actually filter on some of these if I can't find them just very very quickly I mean you can try scrolling down, but you'll just fly right over it just because there's so many icons and This would in case you're wondering would be helpful to actually branch these out to different folders based off what you're trying to do here Larger applications. That's actually what I do do Let's say save as Looks like those are in there and they're good to go. All right. Let's fill this one out. I'm gonna say copy cut paste find Place yeah, let's add a separator and let's say select all let's add these icons in here Skipped over one. Let's go to paste here in a second So we've got copy cut. There we go. Let's say find Looking for a place here. Ah, there it is Couldn't tell just by the icon. There's select all and Sure enough there. They are Let's go to view type zoom in Zoom out. So we got zoom in zoom out. Let's fill this one out. We're gonna say bold italic Underline we want to strike through want to be able to set the font color Let's add another separator here. Let's just call this font. So we got bold italic underline Strike through actually colors right there. So that menu is looking pretty good And then we're going to just say help hand about Looks pretty good Save and run and let's make sure everything looks the way we want it to as far as menus go looks pretty good And let's go ahead and add some toolbars in here. So we're going to add a toolbar Let's just move this bad boy up here. Make it a little easier on us. We're gonna say new Open save Save as let's go ahead and append a separator here say copy Cut paste and Then we're gonna actually just put in some basic Text manipulation here like bold italic underline etc. etc. So let's actually Just add another toolbar and you notice how on my system It just adds it right here and yours it may drop it down one, but it's actually right here And what we might have to do is actually scale this out a bit And then we're just gonna say bold oops italic Underline Strike through I'm gonna add a separator. So we want to add the color in here Let's append another separator. I'll say font save and let's move this down And we want the text edit instead of the plain text edits Let's drag the text edit in here and let's flip into our code. We need to build this. That's the problem build And we got a successful build so we're going to Set central widget And there's our text edit Save and run and let's see what this looks like Looks pretty good now one special note if you stuck around and watch this whole thing you see these little arrows This is what happens when you scale it too small and it just continues the toolbar Bring that back on the screen here You can also grab these toolbars and move and dock them if it's not convenient That's why you'd split it out into multiple toolbars. So you could say hey I Want to do a file toolbar and then format toolbar, and you know, maybe I just want the format toolbar down at the bottom Anyway, you want to set it up. I hope you enjoyed this video It's part of a larger project out of you to me called acute widgets for beginners with C++ This is a large course with 73 lectures and 17 hours of video footage This course covers everything from what is a widget all the way down to complete example applications Using the skills you've learned in this course Sorry, there's no QML in this course. This is strictly cute widgets I will make a QML course later on but this just focus on widgets from a beginner's perspective Even those as a beginner's course, you do need to have some fundamental information available You need to know C++ and the cute core Libs I do have some courses available out on you to me cute core beginners intermediate advance It's not necessary. You take these courses, but it is highly recommended and as always I'm available out on the void realms Facebook group along with 3,000 other programmers. See you there