[Qt-interest] How can I set to position in QPlainTextEdit?

Daniel Vérité daniel.verite at gmail.com
Wed Dec 31 15:41:53 CET 2008


	 Iurii Gordiienko writes

> Any changes... :(    

You mean no change?
If I modify your example to add this code, which clears the selection:

void Widget::load()
{
  _te->clear();
  QTextCursor c = _te->textCursor(); 
  c.clearSelection(); 
  _te->setTextCursor(c); 

  QString s = "aaa  XXXX bbbb YYYY XXXX ffff bbbb dhhhhd XXXXX fhfjhdf 
YYYY";

then I definitely no longer see the "all green" behavior. This is with 
Qt-4.4.3, BTW.

Best regards,
-- 
 Daniel
 PostgreSQL-powered mail user agent and storage: 
http://www.manitou-mail.org 



More information about the Qt-interest-old mailing list