Open an image in a window
I checked on google but I couldn’t find a way so I decided to ask here.
Currently I am using this line of code:
Which just opens the image in windows image preview program.
What I want to do is open the picture in a window or a frame.
Hope you can help me, thank you.
I guess I am doing something wrong? Because it does not display an image
Using Poppler i get compile errors:
release/mainwindow.o:mainwindow.cpp:(.text+0×2e0): undefined reference to `_imp___ZN7Poppler8Document4loadERK7QStringRK10QByteArrayS6_’
release/mainwindow.o:mainwindow.cpp:(.text+0×32f): undefined reference to `_imp___ZNK7Poppler8Document8isLockedEv’
release/mainwindow.o:mainwindow.cpp:(.text+0×33c): undefined reference to `_imp___ZN7Poppler8DocumentD1Ev’
collect2: ld returned 1 exit status
mingw32-make.exe1: *** [release\OpenGL.exe] Error 1
mingw32-make.exe: *** [release] Error 2
10:52:25: The process “E:\Qt_SDK\mingw\bin\mingw32-make.exe” exited with code 2.
Error while building project OpenGL Teaching Tool (target: Desktop)
When executing build step ‘Make’