Qt 6.11 is out! See what's new in the release
blog
Can I get the (x,y) coordinates of a character in a QLabel?
General and Desktop
1
Posts
1
Posters
542
Views
1
Watching
-
I have a text in a
QLabeland I need to know the absolute (x,y) coordinates of a given character inside it.
I also have that character selected (byQLabel::setSelection) if that helps.
I thought of getting the width of the text up until the selection (byQFontMetrics::width()), but duo to some limitations I can't do that.Thanks