Hello! I write again because unfortunatly I couldn´t do what I wanted. I have been trying with everything but I don't get what I want. I am going to explain a little bit more about, because maybe with more details you might help better.
I have different lineEdit (lineEdit, lineEdit_2 and so on). Then when I want to copy a text from one of them to another one, I have the problem that I just can paste on the lineEdit that I have declared in the void MainWindow at the same time. I would like that the button Paste works for each one of the lineEdit where I put on the cursor.
void MainWindow::on_actionPaste_triggered()
{
ui->lineEdit->paste();
ui->lineEdit_2->paste();
...
}
void MainWindow::on_actionPaste_triggered()
{
ui->lineEdit->paste();
ui->lineEdit_2->paste();
...
}
To copy to clipboard, switch view to plain text mode
What I want it is just to paste in the lineEdit where is the cursor. Please, can anybody help me?
Thanks in advance!
Bookmarks