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. Qt on Android notch / cutout support
Forum Updated to NodeBB v4.3 + New Features

Qt on Android notch / cutout support

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 531 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.
  • bunjee207B Offline
    bunjee207B Offline
    bunjee207
    wrote on last edited by bunjee207
    #1

    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 ?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Cleber Morais
      wrote on last edited by
      #2

      I know that have been a long time, but I found this article that address this: https://medium.com/hackernoon/how-you-survive-the-notch-hell-on-ios-android-9badd9d6b935

      And that's not a bug, it's a feature: it's a kind of inset for layout

      Just for future people like me that found your post.

      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