Skip to main content

知识库

Grab remote screen for Qt Applications

上次修改时间: 2026年5月8日

Grab Screen Qt App Overview

The TeamViewer Remote Screen SDK is released under MIT License allowing an easy integration of our source code.

To create Qt applications Qt licenses are needed.

Configuration settings

Configuration of the TeamViewer Embedded Agent

The TeamViewer Embedded Agent needs then to be configured to remote control an external application. This configuration involves also specifying a so-called Image Grab Strategy. The agent tells the application in what way it expects image updates.

In the terminal type in the following commands and press return.

sudo teamviewer-iot-agent configure set EnableRemoteScreen 1
sudo teamviewer-iot-agent configure set RemoteScreenChannels "EAP"

That the value in escaped double quotes (“) can vary from user case. The values could be:

TeamViewer Iot Documentation TeamViewer Table 002

Example application

In the package for the SDK is an example application included. This example show the basic operations of the SDK and how to integrate the plugin into a Qt Quick based application. It requires Qt 5.3 with the modules Qt Quick 2.3 and Qt Quick Window 2.0 to run.

On debian based distributions the following packages are required to run:

  • qml-module-qtquick2
  • qml-module-qtquick-window2

To start the example application:

  • Open the Build directory using the graphical interface
  • Locate the qt_simulate
  • execute the qt_simulate

With the example application, one can also test and see the basic operations:

  • connectivity to the agent: the circle on the top left corner is green when the Embedded Agent is available (this does not indicate network connectivity)
  • set the control mode: Set Full Control (image updates and input), Set View Only (image updates, no input), Disable Remote Control (no image updates, no input)
  • terminate all incoming TeamViewer sessions: Terminate TeamViewer Session is only enabled if there is at least one active remote control session. By clicking, it terminates all incoming sessions and the button is disabled afterward.
  • mouse and keyboard input testing
  • rudimentary animation testing