| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 6 | |
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 ]