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. How can i change Android Status bar color in Qt Qtuick Controls 2? (Material Design)

How can i change Android Status bar color in Qt Qtuick Controls 2? (Material Design)

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 3 Posters 4.2k Views
  • 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.
  • A Offline
    A Offline
    Advanced
    wrote on 11 Jan 2017, 13:22 last edited by
    #1

    Dear guys
    How can i change color of Android Status bar in Qt Quick Controls 2.1 in Material Design?

    alt text
    Thanks

    J 1 Reply Last reply 11 Jan 2017, 13:39
    0
    • A Advanced
      11 Jan 2017, 13:22

      Dear guys
      How can i change color of Android Status bar in Qt Quick Controls 2.1 in Material Design?

      alt text
      Thanks

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 11 Jan 2017, 13:39 last edited by
      #2

      @Advanced Probably you can't. Isn't Android Status Bar handled by the OS (Android)? Maybe there is a way to do it using Android Java API?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Advanced
        wrote on 11 Jan 2017, 14:17 last edited by
        #3

        Actually, i've found the sample like this
        [https://github.com/jpnurmi/statusbar](link url)
        But unfortunately, in Qt 5.7.1 we this code we have a new problem, one white border line exist at the top of the toolbar and right of it.
        alt text

        1 Reply Last reply
        0
        • G Offline
          G Offline
          GTDev
          wrote on 12 Jan 2017, 08:56 last edited by
          #4

          Hi!
          You can also have a look at V-Play Apps engine, which allows to change the tint color for the navigation- and status-bar from within QML.

          For example like this:

           import VPlayApps 1.0
          
           App {
             // change the tint
             onInitTheme: {
                Theme.colors.tintColor = "green" 
             }
          
             // empty page with navigation bar
             NavigationStack {
               Page {
                 title: "Dummy Page"
               }
             }
           }
          

          Cheers,
          Günther

          Senior Developer at Felgo - https://felgo.com/qt

          Develop mobile Apps for iOS & Android with Qt
          Felgo is an official Qt Technology Partner

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Advanced
            wrote on 12 Jan 2017, 21:41 last edited by
            #5

            Actually, I've found this problem is in My Nexus 6 with android 7 and when i rotate device, it's fixed.

            So, it's useful link
            https://github.com/jpnurmi/statusbar

            if you have nexus device please test it

            Thanks guys

            1 Reply Last reply
            0

            3/5

            11 Jan 2017, 14:17

            • Login

            • Login or register to search.
            3 out of 5
            • First post
              3/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved