#include #include "mainwindow.h" #include "apiclient.h" int main(int argc, char *argv[]) { QApplication a(argc, argv); ApiClient* client = new ApiClient(); MainWindow* window = new MainWindow(); window->setClient(client); window->show(); return a.exec(); }