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. QT android app on a dual display
Qt 6.11 is out! See what's new in the release blog

QT android app on a dual display

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 1.3k Views 2 Watching
  • 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.
  • R Offline
    R Offline
    Ronak5
    wrote on last edited by Ronak5
    #1

    Hello,

    I'm working on a dual display system on ARM-A15 on Android 8.0 and above, which has one LCD and HDMI connected.
    So, I want my whole android display to run on LCD and the applications on the HDMI.
    But my QT android app, takes both the display when running.
    Is there a way to enable presentation mode for QT app so that it runs only on HDMI?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      That's more likely a question for the Android folks.

      You should at least add what device you are running on as well as versions of Android.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        That's more likely a question for the Android folks.

        You should at least add what device you are running on as well as versions of Android.

        R Offline
        R Offline
        Ronak5
        wrote on last edited by Ronak5
        #3

        @SGaist
        thnaks for the reply. So I'm running it on a TI board with ARM A15. So my android and so qt app would run on ARM-A15 on Android 8.0 and above.
        Though i've no idea but could it be achieved with some config changes in qt Qpa?

        Also, I found out this way of looking for no. of screens:
        QDesktopWidget *widget = QApplication::desktop();
        qDebug() << "No.of screens:" << widget->screenCount();

        it shows only 1 screen, though both lcd and hdmi are connected.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Does the desktop widget geometry cover both screens ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          R 1 Reply Last reply
          0
          • SGaistS SGaist

            Does the desktop widget geometry cover both screens ?

            R Offline
            R Offline
            Ronak5
            wrote on last edited by Ronak5
            #5

            @SGaist said in QT android app on a dual display:

            the desktop widget geometry cover both screens ?

            I checked it with qDebug() << "Geometry of screens:" << widget->screenGeometry();
            It gives output as geometry size of one only screen which is primary display.

            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