QT += core guigreaterThan(QT_MAJOR_VERSION, 4): QT += widgetsTEMPLATE = appTARGET = gotocellINCLUDEPATH += .# InputSOURCES += main.cppHEADERS += mainwindow.hFORMS += gotocelldialog.ui
#include <QApplication>#include <QDialog>#include "ui_gotocelldialog.h"int main(int argc, char *argv[]){ QApplication app(argc, argv); Ui::GoToCellDialog ui; QDialog *dialog = new QDialog; ui.setupUi(dialog); dialog->show(); return app.exec();}
QT += core guigreaterThan(QT_MAJOR_VERSION, 4): QT += widgets
#include <QObject>class htmlhandler : public QObject{ Q_OBJECTpublic: explicit htmlhandler(QObject *parent = 0);public slots: void process_url();};