Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Ios/android: information about external display
Forum Updated to NodeBB v4.3 + New Features

Ios/android: information about external display

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 2 Posters 2.3k Views 1 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.
  • D Offline
    D Offline
    dbzint
    wrote on last edited by
    #1

    Hi,

    i am trying to get some information about an external display attached to an ios/android device. Everything i tried works fine if i deploy for desktop. But android-,ios device and ios simulator are always reporting only one display/screen.
    Also the signal QDesktopWidget::screenCountChanged() works fine for desktop target, but not for ios/android.

    For the sake of simplicity one really short example:
    @#include "mainwindow.h"
    #include <QApplication>
    #include <QLabel>
    #include <QString>

    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);
    QLabel labl;
    QString str = QString("%1 screen(s) detected!").arg(a.screens().count());
    labl.setText(str);
    labl.show();
    return a.exec();
    }
    @

    Any help or pointers where i missed something would be greatly appreciated. Thanks.

    Further Information:
    I connect the iPad via lightning-digital-av-adapter+hdmi ("apple-store":http://store.apple.com/uk/product/MD826ZM/A/lightning-digital-av-adapter).
    In the iOS-simulator i can attach a external display via the "hardware" menu.
    For the android device its a microUSB-to-hdmi (MHL) adapter cable.

    To check if the hardware is the problem i wrote a little app in Xcode and tested the iPad and iOS-simulator. Both report the external display if its attached.
    I used this class "UIScreen class":https://developer.apple.com/library/ios/documentation/uikit/reference/UIScreen_Class/Reference/UIScreen.html#//apple_ref/occ/clm/UIScreen/screens

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

      Hi and welcome to devnet,

      I would say your use case is currently uncommon. How do you connect an external display to your iOS/Android device ?

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

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dbzint
        wrote on last edited by
        #3

        Hey,

        thanks.
        I connect the iPad via lightning-digital-av-adapter+hdmi ("apple-store":http://store.apple.com/uk/product/MD826ZM/A/lightning-digital-av-adapter).
        In the iOS-simulator i can attach a external display via the "hardware" menu.
        For the android device its a microUSB-to-hdmi (MHL) adapter cable.

        To check if the hardware is the problem i wrote a little app in Xcode and tested the iPad and iOS-simulator. Both report the external display if its attached.
        I used this class "UIScreen class":https://developer.apple.com/library/ios/documentation/uikit/reference/UIScreen_Class/Reference/UIScreen.html#//apple_ref/occ/clm/UIScreen/screens

        Thanks for your help.

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

          It's currently a missing feature (at least on iOS).

          You should have a look at the "bug report system":http://bugreports.qt-project.org to see if it's something known, if not please open a new report.

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

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dbzint
            wrote on last edited by
            #5

            Thank you for your support SGaist.

            I'll see about the bug report this evening.

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

              Don't forget to share the link to the report, so other people interested can find it more easily :)

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

              1 Reply Last reply
              0
              • D Offline
                D Offline
                dbzint
                wrote on last edited by
                #7

                Just realized i forgot to post the link...

                For future reference:
                "QTBUG-39244":https://bugreports.qt-project.org/browse/QTBUG-39244

                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