homer512 icon

Qt millisecond to string

homer512 | PRO | 04/26/14 01:21:02 PM UTC | 0 ⭐ | 10261 👁️ | Never ⏰ | []
C++ (with Qt extensions) |

0 B

|

None

|

0 👍

/

0 👎

#include <QtCore/QTime>
#include <QtCore/QString>
 
QString MainWindow::getLengthCurrentMedia(qint64 current)
{
  QTime t = QTime().addMSecs(current);
  return t.toString();
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎