View Full Version : How to add time in videoplayer
herculis
21st August 2014, 15:59
hello guys i am building a videoplayer and i want and time in that so that i will know how much video is player and how much is remaing
could you please help me in this
thanks.
anda_skoa
21st August 2014, 16:50
See QMediaPlayer properties "duration" and "position".
Cheers,
_
herculis
22nd August 2014, 09:23
Ya duration is the property but how to use it to display time.
Could you please give me example.
anda_skoa
22nd August 2014, 10:18
You mean how to convert the number into a string?
See QString::number() and QString::arg()
Cheers,
_
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.