First things first, yes I did do a thorough search of the dozens of like names posts and my solution was either not there or not apparent to my limited knowledge of the topic.
I am fairly proficient in C++, and use it often, but I have literally just discovered QT and decided to take a whack at it. The error is very basic, which I assume means I did something very basic incorrectly.
What I am using:
- Latest version of CodeBlocks
- Latest version of QT
- A piece of example code from this topic: (Display QImage with QtGui).
- Code blocks is installed here: C:\Program Files (x86)\CodeBlocks
- MinGW here: C:\MinGW\bin
- QT here: C:\Qt\4.8.5\bin
Here is my complete Environment path:
C:\Program Files (x86)\SSH Communications Security\SSH Secure Shell; C:\Qt\4.8.5\bin
From the post I referenced, it sounds like this is a complete and working program (I replaced the image with an image of my own), which further strengthens my opinion that I goofed in a small but profound way.
Referenced Code:
#include <QtGui/QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QImage myImage;
myImage.load("test.png");
QLabel myLabel;
myLabel.setPixmap(QPixmap::fromImage(myImage));
myLabel.show();
return a.exec();
}
The full error log from CodeBlocks build and run:
C:\Users\Josh\Dropbox\Code\Cards\qtTest_loadololo.cpp|1|fatal error: QtGui/QApplication: No such file or directory|
||===
Build finished: 1 errors, 0 warnings (0 minutes, 4 seconds) ===|
The full build log:
\Dropbox\Code\Cards\qtTest_loadololo.o
C:\Users\Josh\Dropbox\Code\Cards\qtTest_loadololo.cpp:1:30: fatal error: QtGui/QApplication: No such file or directory
compilation terminated.
Process terminated with status 1 (0 minutes, 4 seconds)
1 errors, 0 warnings (0 minutes, 4 seconds)
Please do not assume anything I did not provide, I am extremely new to installing all of this and will not take offense to even the simplest of questions.