| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- import QtQuick 2.15
- import QtQuick.Window 2.15
- import QtQuick.Controls 2.15
- import myqml 1.0
- Window {
- id: window
- width: 800
- height: 600
- visible: true
- title: qsTr("Hello World")
- Column {
- spacing: 10
- topPadding: 10
- AudioWaveform {
- id: waveform
- Timer {
- id: timer
- interval: 100
- repeat: false
- running: false
- onTriggered: {
- waveform.paintWaveForm()
- }
- }
- width: window.width
- height: 100
- onWidthChanged: {
- timer.restart()
- }
- }
- Spectrum {
- id: spectrum
- width: window.width
- height: 100
- }
- TimeDomainPlot {
- width: window.width
- height: 100
- }
- SpectrumPlot {
- width: window.width
- height: 100
- }
- WaveformPlot {
- width: window.width
- height: 100
- onWidthChanged: {
- paintWaveForm()
- }
- }
- }
- }
|