-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot open include file: 'QPrintPreviewWidget': No such file or directory #48
Comments
Hi! which build-environment do you use? (Qt-Version, Compiler, OS, QMake/CMake)? ... Since I didn't see that problem until now ... I teste with up to Qt 5.15. Note that Qt6 is not (yet?) supported! Best, |
I poked around a bit on the internet:
So could you let me know some more details about your build system? |
Hi, @jkriege2 thanks you for your answer. I tried the official Qt recommendation before I opened this ticket, but, it didn't worked out for me. I'm currently building on Windows with the default Qt installation, version notes:
on
If this only affects me, you can also close the issue. I thought maybe someone else is experiencing the same issues. Side note: Thank you for your awesome work, the plotter with all the examples is a really neat piece of work! |
Hi! could you try and add these two lines to lib\jkqtplotter\CMakeLists.txt
... and check the output? I did a quick test with Qt 5.14, MSVC2017-64bit ... and for me it reads
which should allow for writing #include ... or do you use QMake for building? |
Hmmm ... I also checked with Qt 5.15.0/MSVC2019 ... and for me it works. Could you try my suggestion from above? |
should be fixed via cc6a87c |
It seems like the import changed with the newer Qt versions: When embedding the library, the error from above is shown. Changing the import to
#include <QtPrintSupport/QPrintPreviewWidget>
worked for me, but I don't know if it's the best solution.E.g. this change solved my issue: master...schlenger:qt_print_support_fix
The text was updated successfully, but these errors were encountered: