Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946
Can I get the (x,y) coordinates of a character in a QLabel?
AlaaM last edited by AlaaM
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 (by
QLabel::setSelection) if that helps.
I thought of getting the width of the text up until the selection (by
QFontMetrics::width()), but duo to some limitations I can't do that.