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. A toolbar that looks like Android Action Bar
Forum Updated to NodeBB v4.3 + New Features

A toolbar that looks like Android Action Bar

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 4 Posters 4.5k Views 2 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.
  • S Offline
    S Offline
    s.frings74
    wrote on last edited by
    #1

    I played around with Qt to constrcut something that looks like Androids Action Bar. It's working now and I like to share that widget with you. See http://stefanfrings.de/android_qt/index-en.html

    The most difficult thing was, that the window refused to become smaller than the action bar. So when I first enlarged the window (so all action buttons are visible), then I was not able to bring the window back to its previous size, where only some few action buttons had space. This was a big issue on Android when the user rotates the screen to landscape format and then back to portrait format.

    Please try it and let me know what you think about it.

    1 Reply Last reply
    1
    • V Offline
      V Offline
      Vincent007
      wrote on last edited by
      #2

      Thank for sharing.
      Will you implement it in QML?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        s.frings74
        wrote on last edited by
        #3

        I avoid qml for the moment, but that may change later.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          cosmam
          wrote on last edited by
          #4

          I was hoping that this would be in QML as well. I've had to basically implement my own, both for the action bar and navigation drawer, for an app I'm currently working on (I'm not currently happy enough with the result to share).

          It would be useful to see something like this added to the QtQuick Controls module or similar.

          1 Reply Last reply
          0
          • P Offline
            P Offline
            pkissel
            wrote on last edited by
            #5

            s.frings74, thank you for sharing your project C++ code with the community. Not everyone who works with Qt mobile dev wants to jump on the Qt Quick bandwagon.

            1 Reply Last reply
            1

            • Login

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