Control which displays QT application is output to

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Control which displays QT application is output to

411件の閲覧回数
donjacobvellathottam
Contributor III

Hi,

I'm using an iMX8 processor and linux 5.15 built with yocto.

Currently I've managed to bring up two displays via LVDS and MIPI.

When I list the displays, it shows they are named XWAYLAND0 and XWAYLAND1. I've named them HDMI-A-1 and HDMI-A-2 in the weston.ini file.

I am able to execute two qt applications in two displays if I do that via the weston terminals inside the respective displays.

But can I control in which display the output of an application will be shown if I'm executing them via the debug terminal or using autoboot 

 

Thanks in advance

0 件の賞賛
返信
2 返答(返信)

376件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi
You may need select output in your QT application using QGuiApplication::screens.. etc.

Please refer QT api

https://doc.qt.io/qt-5/qguiapplication.html

Best Regards
Zhiming

0 件の賞賛
返信

353件の閲覧回数
donjacobvellathottam
Contributor III

Hi, thanks for the response

I was able to do it.

But is there any way to do it via the debug terminal (any cmd commands or anything)

I am trying to show a demo application, and I might need to send the output to either one of the screens. So, hard coding the display name into the application is not suitable now.

I'm trying to see if there are any commands that I can type in before executing the application to direct the output to a specific screen of choice.

I tried to use the 

DISPLAY=:

command but it didn't help

0 件の賞賛
返信