Unsolved Qt Screenshot example not compiling With Qt5.x ?
-
Hello everybody at Qt Forum.
I'm trying to implement screenshot functionality in my Qt application(s)
on i.MX6 target processor with a Yocto based BSP including Qt 5.9.7.
All my cross-compiling platform is ok, I can compile and deploy my
applications (Qt Widget applications or Qt Quick 2 / QML applications)
to my i.MX6 target board.I'm currently trying to compile the official "Screenshot" Qt example,
but it fails to compile.
The official link to Qt screenshot example is below :https://doc.qt.io/qt-5/qtwidgets-desktop-screenshot-example.html
and source files relating to the Screenshot example are accessible
by following link (at bottom of example page url) :https://code.qt.io/cgit/qt/qtbase.git/tree/examples/widgets/desktop/screenshot?h=5.15
Unfortunately something seems to be wrong with the "Screenshot" class
definition and use of that class at line 61 of "main.cpp"
and line 62 of "screenshot.cpp".At current state, "main.cpp" and "screenshot.cpp" fail to compile.
Any suggestion to help solve that would be highly appreciated,
many thanks in advance. Is there a compatibility issue with example
source code that may be "too old" for not so old Qt 5.9 platform ?Best regards,
apclinux (Alain-Pierre)
-
Hi,
What exact error do you have ?