Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qtcreator in docker container through vnc

qtcreator in docker container through vnc

Scheduled Pinned Locked Moved Unsolved General and Desktop
dockervncqtcreatormousekeyboard
1 Posts 1 Posters 722 Views
  • 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.
  • C Offline
    C Offline
    ChristopherBignamini
    wrote on last edited by
    #1

    Hello everybody and thank you in advance for your attention.

    I'm a beginner with Qt and I'm trying to make an app making use of it to run inside a Ubuntu 20.04 docker image through a VNC connection. In order to be sure that everything on Qt side works as expected, I'm trying to run inside the container the qtcreator executable. With the default platform everything seems to be fine. However, when I specify "-platform vnc" option, even if I can connect using a VNC client (TurboVNC), my mouse and keyboard don't work.

    The docker image is nvidia/cuda:11.3.0-devel-ubuntu20.04 and I've installed qtcreator with apt-get (you can find the corresponding image in my dockerhub repo:
    christopherbignamini/cuda:11.3.0-devel-ubuntu20.04_Qt).

    I'm running on a Mac and the docker execution command I'm using is:

    docker run -ti --rm --privileged -p 5900:5900 christopherbignamini/cuda:11.3.0-devel-ubuntu20.04_Qt bash

    The output of the qtreator command with vnc is:

    qtcreator -platform vnc

    QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
    This plugin does not support createPlatformOpenGLContext!
    This plugin does not support createPlatformOpenGLContext!
    QVncServer created on port 5900

    I haven't explicitly set any QT environment variable.

    Do you have any idea about how to fix this issue and make the mouse/keyboard work?

    Thank you very much!

    1 Reply Last reply
    0

    • Login

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