Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to use leftCorner/rightCorner in TabViewStyle in QML

How to use leftCorner/rightCorner in TabViewStyle in QML

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 961 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.
  • A Offline
    A Offline
    amankamboj1
    wrote on last edited by
    #1

    I am using Qt 5.1 - QML desktop components. For TabView, I want to have my tabs aligned right but the tabbar should start after a button at top-right corner. I am able to align tabs right using:
    @ tabsAlignment: Qt.AlignRight@

    However, I am not able to place a button at right corner. Tried this but didn't work.:
    @ padding.right: 60 @

    I saw that in TabViewStyle, we have rightCorner which is set to null. I tried to put in it rectangle or my own custiom button but it didn't appear:
    @rightCorner:
    Rectangle{
    width: 60
    height: 60
    color: "red"
    }@

    Please help on using rightCorner or solving this problem. Thanks!

    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