Hi,
I'm currently using the copy() function to copy text from a lineEdit field using an action but I was wondering if there was a way to have this action to copy any selected text without having to specify each field or it's simply the way it works? If this is the only way, it's totally fine, I just don't want to list each field if there is a better way.
This is what I'm currently using that works, but only for the lineEdit_PartWidth of course.
void MainWindow::on_actionCopy_triggered()
{
ui->lineEdit_PartWidth->copy();
// lineEdit 2...
// lineEdit 3...
}
void MainWindow::on_actionCopy_triggered()
{
ui->lineEdit_PartWidth->copy();
// lineEdit 2...
// lineEdit 3...
}
To copy to clipboard, switch view to plain text mode
Thanks a lot
Bookmarks