Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, July 2007
what does QTextCursor::setPoisition do?


Message 1 in thread

Hi,

    Should the following code always yield "==pos: 1" ?
    It seems that the setPosition does not do anything.
----------
    qDebug() << "--pos:" << textEdit->textCursor().position();
    textEdit->textCursor().setPosition(1);
    qDebug() << "==pos:" << textEdit->textCursor().position();
----------


Honglin Ye

--
 [ signature omitted ]