Home
Phabricator
Search
Log In
Files
F7787600
tabview.qml
filipf (Filip Fila)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Author
filipf
Created
Nov 28 2019, 12:48 AM
Size
872 B
Mime Type
text/plain
Engine
blob
Format
Raw Data
Handle
5013426
Attached To
D25584: [TabBar] Remove frame
tabview.qml
View Options
import
QtQuick
2.5
import
QtQuick
.
Controls
2.3
import
QtQuick
.
Layouts
1.12
ColumnLayout
{
anchors.fill:
parent
anchors.margins:
20
spacing:
0
TabBar
{
id: tabView
border:
false
z:
1
Layout.bottomMargin:
-
1
TabButton
{
text:
"White"
}
TabButton
{
text:
"Green"
}
TabButton
{
text:
"Blue"
}
}
Frame
{
Layout.fillWidth:
true
Layout.fillHeight:
true
StackLayout
{
//or SwipeView + clip for animated?
anchors.fill:
parent
currentIndex:
tabView
.
currentIndex
Rectangle
{
color:
"white"
}
Rectangle
{
color:
"Green"
}
Rectangle
{
color:
"Blue"
}
}
}
}
Log In to Comment