Skip to content
  • 0 Votes
    1 Posts
    373 Views
    No one has replied
  • 6 Votes
    2 Posts
    1k Views
    SGaistS

    Hi,

    Thanks !

  • Qt & iPhone X & The Screen

    Solved Mobile and Embedded
    6
    1 Votes
    6 Posts
    4k Views
    J.HilkJ

    A quick update on this.

    Someone got asigned to it, and theres a workaround, in the in the broader sense of the word.
    There's the Qt::WindowStates flag Qt::MaximizeUsingFullscreenGeometryHint that you can set:

    //QWidgets: { //e.g. Constructor setWindowFlag(Qt::MaximizeUsingFullscreenGeometryHint, true); } //QML: import QtQuick.Window 2.1 // Import needs to be higher than 2.0 Window{ flags: Qt.MaximizeUsingFullscreenGeometryHint id: window ..... }

    now the App fills the whole screen in Portrait-and Landscapemode.

    Tor Arne Vestbø, to whom the ticket was asigned to, says an automatic content margin is in the making, but untill than one has to adjust the UI oneself.

    Tor Arne Vestbø said in QTBUG-64574:

    If you set the Qt::MaximizeUsingFullscreenGeometryHint window flag, the window will also cover the area under the statusbar, etc. But we don't have any APIs to automatically add margins for the inner content, the stuff you don't want under the statusbar, so for now you have to do that manually. I'm working on the latter as we speak.

    I had no idea, that that window flag existed, or was not aktivated by default - on mobile apps.
    I can work with that. The ticket is still open but my problems are solved. I'll close this topic.

  • 0 Votes
    2 Posts
    1k Views
    R

    found the answer in: https://forum.qt.io/topic/47495/upload-ios-image-with-qt/8

  • 0 Votes
    13 Posts
    6k Views
    p3c0P

    @mkdh You're Welcome :) Also please surround your code with ``` (3 backticks) while posting it here. It looks more nicer. I have now added those in your previous post. Happy Coding ...

  • 0 Votes
    1 Posts
    856 Views
    No one has replied