Ah! Sorry, I'm probably very confused on how these QT functions work in general, since I'm kind of semi winging purely out of experience on other languages. Let me elaborate to see if I'm horribly wrong somewhere
My goal here is to rework the portion of the code I've already got, which draw letters/string and is just being defined as ui_vp_message = new QTextEdit(ui_vp_chatbox);, said "Rework" would be to tweak said code so the text has an outline, and if possible being able to choose how wide said outline is.
The way I understand it I could use QPainter instead of QTextEdit to draw a black font outline and then fill it in with white, but that'd requiere me to rework a whole lot of code, which is fine unless I can avoid it, and I also wanted to let the user have the *choice* of using outlines or not via setting values on config files.
But then again I'm probably completely missunderstanding how QPainter and QTextEdit even relate to each other.
Ah, I don't want to draw a frame or a border around QTextEdit, assuming I understood that correctly. I just want to outline the text itself. If you're suggesting that for the light blue background I added, I just chose that so the outline would stick out.
If you mean getting a family font that is an outline font itself, I thought about doing that, yeah. The problem with that is that the fonts utilized will be almost entirely provided by the user, so as I said, I'd like the outline to be optional.
Also! To clarify, I don't want it to be empty inside, I want it to be white on the fill and black on the outline.
TL;DR: I guess what I'm trying to ask is if there is any simple-ish way I can give my QTextEdit an outline, if I'm greatly missunderstanding the core concepts of how QT draws text, or if I should just keep looking at the docs trying to figure stuff out.
Also, sorry for my jank! And thanks for your patience, and actually calling out my confusing stuff!
Bookmarks