Unsolved Adding Build Date Time in the application UI
-
How can I add the build date and time in the corner of a QT application UI?
-
There is nothing specific exist get & show it. You need to write your own small widget and display it.
How are you getting the build date & time information ? -
@dheerendra said in Adding Build Date Time in the application UI:
How are you getting the build date & time information ?
This is my question. If I get this information rest I know how to show it on the UI.
-
@gully said in Adding Build Date Time in the application UI:
If I get this information
May be you can set it in
.pro
file and get the details in your sources.
something like thisDEFINES += VERSION=\\\"$$VERSION\\\
-
This post is deleted! -
@gully said in Adding Build Date Time in the application UI:
How can I add the build date and time in the corner of a QT application UI?
at compile time use the
__DATE__
/__TIME__
macros (type is const char*) and parse it to the desired format.
(supported by gcc, mingw, msvc)