QTcreator fehler
-
Qt Creator spukt mir immer fogende Fehlermeldung aus C:/Users/Administrator/Documents/test/mainwindow.cpp:24: error: expected `;' before string constant
ich weis echt nicht woran es legen kann#include "mainwindow.h" #include "ui_mainwindow.h" #include <QLineEdit> #include <QString> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); } MainWindow::~MainWindow() { delete ui; } void MainWindow::on_pushButton_clicked() { QLineEdit InputA; InputA.text()"Hallo"; }
-
plasma96 schrieb:
void MainWindow::on_pushButton_clicked() { QLineEdit InputA; InputA.text()"Hallo"; //Was soll das sein? }
-
plasma96 schrieb:
InputA.text()"Hallo";Dieser Satz kein Verb.
-
hä wieso kein verb
-
Schau dir das doch mal an. Gehören Funktionsargumente nicht etwa in die Klammern?