Unsolved dual display
-
Hi,
I am working on ti board, flashed with Android Marshmallow. There are 2 displays connected to the board(LCD and HDMI).
I have created small Qt App(Example:Hello world). current scenario, screen mirror happening: If i open any application same is getting mirrored on both the displays.I want different applications to be run independently on each display.(example: video playback on LCD and google maps on HDMI ). How to do it in Qt?
Any help will be highly appreciated.
Thanks,
Arun -
What does QApplication :: desktop () -> screenCount () return?
-
QDesktopWidget *widget = QApplication::desktop();
qDebug() << “Number of screens:” << widget->screenCount();
Number of screens: 1 (screen count coming as 1 even though both HDMI and LCD connected to the board) -
Hi,
Just a wild guess but if your screens are setup in mirroring mode, your system is only making "one" available to your applications. Therefore the screen count is coherent with the current mode your system is using.
-
Hi @dasariarun6
I'm guessing that the the reason is that multiple display support seems to only have come in Android Oreo.
https://developer.android.com/about/versions/oreo/android-8.0.htmlAnything before that and you would probably need help from either the chipset vendor and pretty good Android hacking skills.
-
Hi @tekojo
dual display is available in Android Marshmallow using the presentation mode.
https://developer.android.com/reference/android/app/Presentation.htmlis there any way/method to get the same using Qt? (My Qt App to be displayed independently on LCD and other application should be displayed on HDMI).
-
@dasariarun6 that looks like quite specific functionality.
Qt for Android doesn't have Presentation implemented. You would have to write something to handle that functionality in the Android Qt Platform Abstraction. (http://doc.qt.io/qt-5/qpa.html)