Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt on Android notch / cutout support



  • I'm using the following to get rid of the notch / cutout on Qt 5.14.2:

    <?xml version="1.0" encoding="utf-8"?>
    <resources>
        <style name="theme" parent="@android:style/Theme.DeviceDefault.NoActionBar">
            <item name="android:statusBarColor">#323232</item>
            <!-- NOTE: The following is required to avoid the notch in full screen. -->
            <item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
        </style>
    </resources>
    

    It's working fine when I'm in full screen and I get edge to edge display. Unfortunately when I'm not in full screen I get an ugly white bar on the left like so:

    cutout.jpg

    Is there a way to paint on that surface, or at least have it black ?


Log in to reply