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

Qt-interest Archive, August 2006
QTextEdit cursorPositionChanged Signal Closes widget


Message 1 in thread

this slot closes the open widget when signalled by cursorPositionChanged

void modUserRefDialog::on_textEdit_cursorPositionChanged() // This syntax 
will cause setupUi() to automatically connect the slots
{
   QTextCursor cursor = textEdit->textCursor();
   cursor.select(QTextCursor::LineUnderCursor);
   textEdit->setTextCursor(cursor);
}

any ideas why? 


--
 [ signature omitted ]