[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Position Cursor (KEdit)
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2003-08-31 6:27:07
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 30 August 2003 04:45, Taj Morton wrote:
> Hi all,
> How can I position the cursor at the end of the current text in the
> KEdit widget?

to the end of the document:

	moveCursor(QTextEdit::MoveEnd, false);

to the end of the current line:

	moveCursor(QTextEdit::LineEnd, false);

if moveCursor doesn't do what you need (e.g. you need more precise control) 
look at setCursorPosition... you can use the various paragraph and character 
accessor methods to figure out what values to use...

it's all in the QTextEdit docu...

- -- 
Aaron J. Seigo
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/UZU71rcusafx20MRAgyRAJ9xE/MChm86b0Ua56THzaGPF8pt7gCfUYK0
34rsxzwPTOJc5u16Kionnrk=
=prPm
-----END PGP SIGNATURE-----
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic