The user moves the cursor by clicking. In any case, I fixed the issue by changing handleSelect to this:
void MainWindow::handleSelect(){
if (ListWindow->textCursor().atBlockEnd() == false){
}
}
void MainWindow::handleSelect(){
if (ListWindow->textCursor().atBlockEnd() == false){
ListWindow->moveCursor(QTextCursor::StartOfLine);
ListWindow->moveCursor(QTextCursor::EndOfLine, QTextCursor::KeepAnchor);
}
}
To copy to clipboard, switch view to plain text mode
Works fine for test cases, should be fine moving forward. Thanks for the help.
Bookmarks