adel68
پنج شنبه 05 بهمن 1391, 08:02 صبح
باسلام خدمت دوستان:
من این تکه کدرو نوشتم ولی خطا داد:
#include <QApplication>
#include <QPushButton>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QPushButton *button=new QPushButton("Quit");
QObject::connect(button,SIGNAL(clicked()),quit,SLO T(quit()));
button ->show();
return a.exec();
}
اینم خطا:
/home/adel/Documents/Qt/quit/main.cpp:9: error: 'quit' was not declared in this scope
من تازه شروع به یادگیری کیوت کردم لطفا کمک کنید.
من این تکه کدرو نوشتم ولی خطا داد:
#include <QApplication>
#include <QPushButton>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QPushButton *button=new QPushButton("Quit");
QObject::connect(button,SIGNAL(clicked()),quit,SLO T(quit()));
button ->show();
return a.exec();
}
اینم خطا:
/home/adel/Documents/Qt/quit/main.cpp:9: error: 'quit' was not declared in this scope
من تازه شروع به یادگیری کیوت کردم لطفا کمک کنید.