Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Adding Build Date Time in the application UI
Qt 6.11 is out! See what's new in the release blog

Adding Build Date Time in the application UI

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 5 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gully
    wrote on last edited by
    #1

    How can I add the build date and time in the corner of a QT application UI?

    raven-worxR 1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Moderators Qt Champions 2024 Qt Champions 2022 Qt Champions 2017
      wrote on last edited by
      #2

      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
      @Community Service
      Certified Qt Specialist
      https://www.pthinks.com

      1 Reply Last reply
      2
      • G Offline
        G Offline
        gully
        wrote on last edited by gully
        #3

        @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.

        RatzzR 1 Reply Last reply
        0
        • G gully

          @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.

          RatzzR Offline
          RatzzR Offline
          Ratzz
          wrote on last edited by Ratzz
          #4

          @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 this DEFINES += VERSION=\\\"$$VERSION\\\

          --Alles ist gut.

          1 Reply Last reply
          1
          • S Offline
            S Offline
            Slawomir_Piernikowski
            wrote on last edited by
            #5
            This post is deleted!
            1 Reply Last reply
            0
            • G gully

              How can I add the build date and time in the corner of a QT application UI?

              raven-worxR Offline
              raven-worxR Offline
              raven-worx
              Moderators
              wrote on last edited by raven-worx
              #6

              @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)

              --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
              If you have a question please use the forum so others can benefit from the solution in the future

              1 Reply Last reply
              5

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved