Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
#include <QApplication>
#include <QPushButton>

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    QPushButton *nappi = new QPushButton("LOPPU");
// yhdistetään napi signaali clicked sovlluksen slotiin quit
    QObject::connect(nappi, SIGNAL(clicked()),&app, SLOT(quit()));
    nappi->show();
    return app.exec();
}

...