C++ Code with Error message:
void MainWindow::on_pushButton_clicked()
{
QPointer<QLabel> label = ui->label1;
label->setText("Label 1 text changed");
}
Solution:
You need to include the “#include <QPointer>“ at the top section in this implementation file.
No comments:
Post a Comment