llorenzi
25th February 2016, 15:54
I tried many times to enable a different QPlainTextEdit by clicking two different PushButtons.
Here part of my code:
// MERGE
descriptionEdit->setPlainText("Select the two fragments.");
connect(b_merge, SIGNAL(triggered()), descriptionEdit, SLOT(on_pushButton_clicked()));
// SPLIT
descriptionEdit->setPlainText("Draw a polyline.");
connect(b_split, SIGNAL(triggered()), descriptionEdit, SLOT(on_pushButton_clicked()));
It gives me only the second one (SPLIT), and without any clicking.
I just want that by clicking one of the two buttons also the text sholud be change.
Here part of my code:
// MERGE
descriptionEdit->setPlainText("Select the two fragments.");
connect(b_merge, SIGNAL(triggered()), descriptionEdit, SLOT(on_pushButton_clicked()));
// SPLIT
descriptionEdit->setPlainText("Draw a polyline.");
connect(b_split, SIGNAL(triggered()), descriptionEdit, SLOT(on_pushButton_clicked()));
It gives me only the second one (SPLIT), and without any clicking.
I just want that by clicking one of the two buttons also the text sholud be change.