Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Japanese
  4. QPAプラグインのVNCの利用方法について
Forum Updated to NodeBB v4.3 + New Features

QPAプラグインのVNCの利用方法について

Scheduled Pinned Locked Moved Unsolved Japanese
vncplugin
1 Posts 1 Posters 1.9k 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.
  • T Offline
    T Offline
    Tsuyu
    wrote on last edited by
    #1

    はじめまして。
    組み込みLinuxに興味を持って最近Qtを始めた者です。

    使用している環境はYoctoでビルドしており、バージョンがPyroになったことでレシピに含まれるQtも5.8にアップグレードされているようで、Qtのリリースノートを確認しているとVNCサポートが追加された旨が記載されていましたので使用したいと考えています。

    調べていると、Qtアプリ実行の際にQPAプラグインを指定することで、このVNCが利用できるとのことだったのですが、下記のように実行すると、VNCビューアから接続した画面が黒一色で何も表示されません。

    /usr/bin/qt5/qmlscene window.qml -platform vnc

    This plugin does not support createPlatformOpenGLContext!
    QVncServer created on port 5900

    VNCのQPAプラグイン指定で使用できるオプションが公開されていないようなのですが、
    -platform vncにオプションを追加することで、VNCビューア上にアプリ実行画面が表示できるのでしょうか?

    または、QMLファイル側で何か気を付けないといけないことがあるのか、何方かご教示いただくことはできないでしょうか?
    使用しているQMLは下記で、ひとまず手探りで作成してQPAプラグイン指定なしの実行ではVM上の画面に表示されることは確認できました。
    @
    import QtQuick 2.0
    import QtQuick.Window 2.1
    import QtQuick.Controls 1.4

    Window {
    Rectangle {
    // WINDOW PROPERTIES
    anchors.fill:parent
    //visibility = Window.FullScreen
    MouseArea {
    anchors.fill: parent
    //onClicked: Qt.quit();
    onClicked: visibility = Window.Windowed
    }
    // WIDGETS
    Column {
    Label {
    //anchors.centeSrIn: parent
    text :qsTr("Windowed")
    font.pixelSize: 28
    font.bold: true
    anchors.horizontalCenter: parent.horizontalCenter
    }
    Button {
    //anchors.centerIn: parent
    text :qsTr("FullScreen")
    anchors.horizontalCenter: parent.horizontalCenter
    onClicked: visibility = Window.FullScreen
    }
    anchors.centerIn: parent
    }
    }
    }
    @

    宜しくお願いします

    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