This commit is contained in:
朱子楚\zhuzi 2023-03-29 22:42:08 +08:00
parent 5a1b10fef8
commit 036450f0a3
5 changed files with 8 additions and 9 deletions

View File

@ -46,13 +46,15 @@ FluScrollablePage{
headerText:"打开一个滑动文本框"
Item{
anchors.fill: parent
ScrollView{
Flickable{
id:scrollview
width: parent.width
height: parent.height
contentWidth: parent.width
contentWidth: width
contentHeight: text_info.height
ScrollBar.vertical: FluScrollBar {}
FluText{
id:test
id:text_info
width: scrollview.width
wrapMode: Text.WrapAnywhere
padding: 14

View File

@ -30,17 +30,13 @@ FluScrollablePage{
verticalCenter: parent.verticalCenter
left:parent.left
}
FluMediaPlayer{
id:player
// source:"http://mirror.aarnet.edu.au/pub/TED-talks/911Mothers_2010W-480p.mp4"
source:"http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"
// source:"http://video.chinanews.com/flv/2019/04/23/400/111773_web.mp4"
}
}
}
}
}

View File

@ -3,7 +3,6 @@ import QtQuick.Window 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtGraphicalEffects 1.15
import FluentUI 1.0
FluWindow {
@ -12,7 +11,7 @@ FluWindow {
height: 640
title: "FluentUI"
minimumWidth: 520
minimumHeight: 400
minimumHeight: 460
FluAppBar{
id:appbar

View File

@ -48,6 +48,7 @@ Item {
anchors.fill: parent
x: r
y: r
preventStealing: true
function handleMouse(mouse) {
if (mouse.buttons & Qt.LeftButton) {

View File

@ -17,6 +17,7 @@ Rectangle {
MouseArea{
anchors.fill: parent
preventStealing: true
onClicked: {
showControl = !showControl
}