qt - How can I know the absolute position of the text input cursor in a QTextEdit? -


QTextEdit is apparently a text concert () method that gives a QTextCursor, but it has a cursor to modify the document

I do not see any way to get the actual full (or widget relative) widget of the blinking cursor in GUI. How can I retrieve this information? In QTextEdit there is a method called cursor (), in which the position of the position of the QRect cursor is displayed. .

QRect QTextEdit :: cursorRect (const QTextCursor and cursor) const
returns a rectangle (in the viewport coordinate) Includes
QRect QTextEdit :: cursorRect () const
Returns a rectangle (in the viewport coordinates), which includes the text editing cursor.

QRect coordinates will be able to provide

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -