1 Star 0 Fork 0

dodofung/DemoCloudMusicPlayer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.qml 1.33 KB
一键复制 编辑 原始数据 按行查看 历史
fengchao 提交于 2024-12-13 16:54 . AppBackground.qml
import QtQuick 2.11
import QtQuick.Window 2.12
import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3
import HttpApi 1.0
import QtMultimedia
ApplicationWindow {
property int mWINDOW_WIDTH: 1200
property int mWINDOW_HEIGHT: 800
property int mSMALL_WINDOW_WIDTH: 600
property int mSMALL_WINDOW_HEIGHT: 400
id: mainWindow
width: mWINDOW_WIDTH
height: mWINDOW_HEIGHT
visible: true
title: qsTr("Demo Cloud Music")
background: AppBackground{
id:appBackground
}
HttpApiUtils{
id:http
}
ColumnLayout{
anchors.fill: parent
spacing: 0
PageHeaderView {
id: pageHeaderView
}
PageHomeView{
id: pageHomeView
}
PageSingleSongView{
id:pageSingleSongView
visible: false
}
PageBottomView{
id: pageBottomView
}
}
MediaPlayer{
id:mediaPlayer
signal progress(int pos,int total)
onPositionChanged: {
progress(mediaPlayer.position,mediaPlayer.duration)
}
}
signal toggleSingleSongView(bool vis,var musicItem)
onToggleSingleSongView: function(vis,musicItem){
pageSingleSongView.visible = vis
pageHomeView.visible = !vis
pageSingleSongView.changeMusicItem(musicItem)
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/dodofung/demo-cloud-music-player.git
git@gitee.com:dodofung/demo-cloud-music-player.git
dodofung
demo-cloud-music-player
DemoCloudMusicPlayer
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385