I never am able to do this:
I did what the previous poster said,
[qtcode]
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton *pushButton = new QPushButton(QIcon("TestQT.ico"), "text", 0);
pushButton->show();
return app.exec();
}
[/qtcode]
However, even though TestQT.ico and this program are in same folder, it does not work... neither does C:/blabla.... What do I do?
Bookmarks