QPainter drawtext Bold
-
@TheCipo76
Sample is like 98% your code. just removed the Date stuff.
Even to Image is your code, just to a pixmap.
Rest of it, is the same. So something must have went wrong
altering the code, or maybe it didnt use new code or something. -
@TheCipo76
Good hunting. Now we know it will work so
its just to compare sample to actual code and see what could be difference. -
@TheCipo76
When you find it, please tell here.
Its always good for me to know what i missed. -
@TheCipo76
Aha, and did you try the
http://doc.qt.io/qt-5/qtwidgets-richtext-textedit-example.html
example on mac too ?
We have other poster that has Bold issue on macOs.
https://forum.qt.io/topic/98726/qtextedit-make-text-boldso its kinda important to know if RichText sample do not go bold for you either as it then
smells like a Qt thing /Xcode / macOS version thing. -
Hi
(only talking macOs)
So Rich Text can do bold but your code does not ?
So unlike other poster - its sort of mixed.
Very odd.
Also if not even my sample with image give Bold text then
something is not workings it should.
I wonder if the font itself could be the issue.
did you try with other fonts in the code ? -
@TheCipo76
Ok so seems the same as other poster.
Do you also have message in Creator ?
like
Project WARNING: Qt has only been tested with version 10.13 of the platform SDK, you're using 10.14. -
@mrjj Yes, but i've silenced it with:
CONFIG += sdk_no_version_check
this is the message:
Project WARNING: Qt has only been tested with version 10.13 of the platform SDK, you're using 10.14.
Project WARNING: This is an unsupported configuration. You may experience build issues, and by using
Project WARNING: the 10.14 SDK you are opting in to new features that Qt has not been prepared for.
Project WARNING: E.g., 10.14 enables dark mode and layer-backed views, which Qt 5.11 does not support.
Project WARNING: Please downgrade the SDK you use to build your app to version 10.13, or configure
Project WARNING: with CONFIG+=sdk_no_version_check when running qmake to silence this warning. -
@TheCipo76
Ok super , so i think its related.
and what Qt are you using ?
The other poster is using Qt 5.12.0 -
Ok
I think that version might have some kind of issue with Mojave
Tried to scan the bug site but didn't see anything. -
@TheCipo76
Oh nice found.
I think that is very related.
weights is other term for bold.
So should be fixed in
5.12.0 Beta 1
but i dont know if that is the same version that is available as
Would it be an option to try it out ?
-
@aha_1980
Ah yes, of cause. i read it as 5.12.1 Beta 1
but the released 5.12.0 sure includes the beta code: )Hmm that is actually bad news as its either not included
or did not fix Bold/weight issues in all cases.
Or was fixed for platform SDK 10.13 , but not for 10.14.So what is the right approach here ?
With only 2 posters having Bold issue, im not sure it warrants a new bug report yet ?