Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to display one of multiple screens on "x display".
Qt 6.11 is out! See what's new in the release blog

How to display one of multiple screens on "x display".

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 324 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.
  • M Offline
    M Offline
    morita
    wrote on last edited by
    #1

    Hello.

    I curently have a problem about how to display one of multiple screens on "x display".

    I have three screens which include 2 standard display and a "x display".

    The diagram is below.キャプチャ.PNG

    I have the redhawk linux pc and the three screens are connected with the pc.

    I wrote down tree screens contents on main.qml like:

    import QtQuick 2.3
    import QtQuick.Controls 2.3
    import QtQuick.Window 2.1
    import "MainDisp"
    import "CameraImgDisp"
    import "TouchPanel"

    import ViewMain 1.0

    QtObject{

    property ViewMain viewmain: ViewMain {
    
        property Window mainDispWindow: MainDispWindow{
            id:mainDispWindow
            x:1920
            y:0
        }
    
        property Window CameraImgDispWindow: CameraImgDispWindow {
            id:cameraImgDispWindow
            x:1920
            y:0
        }
    
        property Window touchPanelWindow: TouchPanelWindow {
            id:touchPanelWindow
            x:0
            y:0
        }
    }
    

    }

    What I try is :

    ・to configure property"Qt.application.screens[x]". But I could not get a infomation about x display and
    could not display only xserver.
    https://doc.qt.io/qt-5.12/qtquick-window-allscreens-qml.html

    ・to configure "Display =tp11.0.0 ./project_name "on my linux terminal. But I displayed three screens on only x display.
    I mean I could not display on the other screens.

    If you know how to solve my problem , could you tell me that ??

    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