TabView Control Native Look



  • Hi! I've been wondering on how to use the TabView with native look. In The Gallery controls example inside qt creator the project uses the ApplicationWindow qml type but In my project Im using a QQuickView wrapper thing generated from the wizard to use qt quick 2.0. so I cant use the Application Window. Therefore I think that the TabView control doesn't look like in the example because of this. I have my qml as follows:

    @import QtQuick 2.0
    import QtQuick.Controls 1.0

    Rectangle {
    id:root
    color: "#f5f5f5"

    TabView {
        id:frame
        anchors.margins: Qt.platform.os === "osx" ? 12 : 2
        Tab {
            title: "Debug"
        }
        Tab {
            title: "Profiling"
        }
    }
    

    }@

    Is this the reason or Im missing something to make this control look as the Gallery example?

    Thanks!
    Ivan.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.