Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Better QML tab buttons?
Forum Updated to NodeBB v4.3 + New Features

Better QML tab buttons?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 157 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.
  • B Offline
    B Offline
    Bob64
    wrote on last edited by Bob64
    #1

    A company UX person recently took a look at the QML GUI I work on and one of their observations was that the tabs didn't look much like the tabs that one sees in other applications. I can't disagree and must admit that, when I first had to implement a tab view with QML, my first thought was: surely there is a way of making it look better than that?

    In QML, tab buttons by default just look like a row of buttons with poor integration into the tab view. We are limited by the QML paradigm that basically everything is a rectangle and at best one can round all the corners.

    I've come across a couple of articles and StackOverflow answers that attempt to do something a little better but there seems to be a lot of kludging involved.

    Am I missing something or do we just have to live with the fact that QML tabs are a bit rubbish? Has anyone managed to make a decent custom tab view?

    As a point of reference, these are the tabs on my Chrome browser:

    40dc5e72-e03a-4f5d-949e-4243fff339cf-image.png

    They are quite simple but the shaping gives a real sense of the active tab being forward. I am not saying that this would be impossible with QML, but you would have to jump through quite a lot of hoops. Just the ability to independently specify rounded corners on a rectangle would make this a lot easier to implement.

    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