Seems to me placing hogs does not need 5s since it is a fixed interval now. Maybe if placing hogs was ever 0 seconds or something.
#include <QApplication>
#include "mainform.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MyWindow *mainWin = new MyWindow;
mainWin->show();
return app.exec();
}