C++ (Qt)...QTextCursor tc = textCursor();tc.select(QTextCursor::LineUnderCursor);QString line tc.selectedText();...