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

Andre Somers andre at familiesomers.nl
Fri Jan 14 11:14:45 CET 2011


Op Vr, 14 januari, 2011 10:57 am, schreef TP:
> danny wrote:
>
>> There should be only one focused widget at the same time.
>
> Thanks for your answer.
> Have you any idea about how to make cursors in both widgets visible at the
> same time?
> As already said, I want some correspondance between the two QTextEdit: for
> example, when the cursor moves down in one widget, the other cursor moves
> down, etc.

I think, you will have to either hack QTextEdit to show the cursor, or
create your own fake cursor instead. AFAIK, there is no official Qt API to
do what you want.

André





More information about the Qt-interest-old mailing list