[Qt-interest] Implement a Go to line

BRM bm_witness at yahoo.com
Tue Apr 19 01:06:17 CEST 2011


Just a guess from looking through the Qt 4.5.2 docs...

1. Get the underlying QTextEdit control (non-trivial)
2. Get the QTextCursor and move it; check into QTextFrame.

$0.02

Ben


>
>From: David Villalobos Cambronero <david.villalobos.c at gmail.com>
>To: qt-interest at trolltech.com
>Sent: Mon, April 18, 2011 6:38:38 PM
>Subject: [Qt-interest] Implement a Go to line
>
>Hi all,
>
>I have a QPlainTextEdit and I want to implement a Go To Line function, I've try 
>to look in the source if qtcreator, but couldn't find any clue.
>
>Any idea of how to implement it?
>
>Regards
>---
>David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110418/9c39003a/attachment.html 


More information about the Qt-interest-old mailing list