If all you want on Windows is to be able to drag and drop one or several files on your application, then you need to handle the arguments passed to your Qt application. Just try the following:
#include <QtGui/QApplication>
#include "mainwindow.h"
#include <QMessageBox>
int main(int argc, char *argv[])
{
QMessageBox::information(NULL,
"Arguments:", a.
arguments().
join(" | "));
MainWindow w;
w.show();
return a.exec();
}
#include <QtGui/QApplication>
#include "mainwindow.h"
#include <QMessageBox>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QMessageBox::information(NULL, "Arguments:", a.arguments().join(" | "));
MainWindow w;
w.show();
return a.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks