Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt Screenshot example not compiling With Qt5.x ?
Forum Updated to NodeBB v4.3 + New Features

Qt Screenshot example not compiling With Qt5.x ?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 200 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    apclinux
    wrote on last edited by
    #1

    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)

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What exact error do you have ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved