I am using Visual Studio 2015 with 32-bit Qt libraries which i built from qt-everywhere-src-5.12.0. Trying to load a static image using QImage.
Receive the following message when i debug :
QImage not loading, Error : <Information not available, no symbols loaded for Qt5Gui.dll>

I tried the same approach in Qt creator and I am able to load the image.

Have used the following code :
Qt Code:
  1. void BqtOglCanvas::drawImage(int width, int height, BmRect imageRect)
  2. {
  3.  
  4. imgFlag = true;
  5.  
  6. resultSize = QSize(width, height);
  7. paintRect = QRect(QPoint(imageRect.pnt1.x, imageRect.pnt1.y), QPoint(imageRect.pnt2.x, imageRect.pnt2.y));
  8. }
  9.  
  10. QImage* BqtOglCanvas::loadImage(const QString &fileName, QImage *image) {
  11.  
  12. image->load(fileName);
  13.  
  14. *image = image->scaled(resultSize, Qt::KeepAspectRatio);
  15.  
  16. return image;
  17. }
  18.  
  19. QImage BqtOglCanvas::getSourceImage() {
  20. return sourceImage;
  21. }
  22.  
  23. void BqtOglCanvas::paintEvent(QPaintEvent *e)
  24. {
  25.  
  26. if (imgFlag) {
  27. imgFlag = false;
  28.  
  29. QImage sourceImage = getSourceImage();
  30.  
  31. QImage* img = loadImage("C:/Users/qu826e/Downloads/ply.png", &sourceImage);
  32.  
  33. const QRect imageRect = paintRect;
  34. const QImage resImage = *img;
  35. QPainter painter(this);
  36. painter.drawImage(imageRect, resImage);
  37. }
  38. }
To copy to clipboard, switch view to plain text mode 

Any leads will be really helpful.