Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_corelib_tools_qtimeline.cpp File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

Go to the source code of this file.

Functions

progressBar setRange (0, 100)
 
timeLine setFrameRange (0, 100)
 
 connect (timeLine, &QTimeLine::frameChanged, progressBar, &QProgressBar::setValue)
 
 connect (pushButton, &QPushButton::clicked, timeLine, &QTimeLine::start)
 

Variables

 progressBar = new QProgressBar(this)
 [0]
 
QTimeLinetimeLine = new QTimeLine(1000, this)
 
 pushButton = new QPushButton(tr("Start animation"), this)
 

Function Documentation

◆ connect() [1/2]

◆ connect() [2/2]

◆ setFrameRange()

timeLine setFrameRange ( 0 ,
100  )

◆ setRange()

progressBar setRange ( 0 ,
100  )

Variable Documentation

◆ progressBar

progressBar = new QProgressBar(this)

◆ pushButton

pushButton = new QPushButton(tr("Start animation"), this)

Definition at line 15 of file src_corelib_tools_qtimeline.cpp.

◆ timeLine

QTimeLine* timeLine = new QTimeLine(1000, this)

Definition at line 10 of file src_corelib_tools_qtimeline.cpp.