[Qt-interest] 2 QTextEdit: how to obtain a visible cursor in both at startup

Diego Iastrubni diegoiast at gmail.com
Fri Jan 14 17:11:36 CET 2011


>
> Or overlay a QLabel at the correct position, or...
>

This will not work, as only one widget will contain the active cursor. The
best approach is to emulate the fake cursor by painting it manually.

BTW: this is *so* wrong... the text cursor is a singleton resource... this
is a *bad* idea.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110114/51114f85/attachment.html 


More information about the Qt-interest-old mailing list