[+EXP-Example] Qt Creator: Date QML Type - Threading Basics with Timer: Fix M221 in QML
Channel:
Subscribers:
17,500
Published on ● Video Link: https://www.youtube.com/watch?v=uGL1NSZxCis
--GOODLUCK--
Get(Free,Donate):
1.E: This type (Timer) is not supported in a Qt Quick UI form. (M221)
in file: *.ui.qml
FIX: code in *.qml(not .ui.qml)
########################
2. Timer in qml
Example:
Timer{
id:timer
interval: 500
repeat: true
running: true
triggeredOnStart: true
onTriggered: {
//your code in here
}}//timer
///////////////////////////////
3. Date QML Type | Date()
Doc: http://doc.qt.io/qt-5/qml-qtqml-date.html
Example:
btn.text= new Date().toLocaleString(Qt.locale(),"h:mm:ss")
//09:10:11
btn.text= new Date().toLocaleString(Qt.locale(),"d h:mm:ss")
//19 09:11:17
/////////////////////////
OK:
1- im using Qt Quick 2 (Qt Creator 5.8)
2- see my code
3- what-fix
OK DONE
GOODLUCK
Other Videos By 1OP10
Tags:
ubuntu os
windows os
gimp photo editor
inkscape vector editor
blender 3D
qt creator