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. How to create an about item showing version info in Help menu
Forum Updated to NodeBB v4.3 + New Features

How to create an about item showing version info in Help menu

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 5 Posters 289 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.
  • M Offline
    M Offline
    Make it GREAT again
    wrote on last edited by
    #1

    Hello,
    The title is what I am trying to do, see the atttachment as well![alt text](qtabout.png image url).
    I just wonder that is there a simple way to generate this item or we have to create a dialog class to show this version info.
    BTW, I have alread created .rc file to give version info of the executable file and it works well.

    JonBJ 1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      You have to write it on your own.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2
      • M Make it GREAT again

        Hello,
        The title is what I am trying to do, see the atttachment as well![alt text](qtabout.png image url).
        I just wonder that is there a simple way to generate this item or we have to create a dialog class to show this version info.
        BTW, I have alread created .rc file to give version info of the executable file and it works well.

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @Make-it-GREAT-again
        As @Christian-Ehrlicher says, you have to write the code/dialog yourself. However, to keep it correct automatically over time, you can probably find some compilation-time variables to use instead of hard-coding what you are using right now. For example, in https://doc.qt.io/qt-5/qtglobal.html there is QT_VERSION_STR or qVersion(), and there are doubtless compiler macros for compiler version, etc.

        1 Reply Last reply
        0
        • B Offline
          B Offline
          Bonnie
          wrote on last edited by Bonnie
          #4

          You don't have to create a new dialog class, you can just use QMessageBox.
          But you need to write the contents (title, text/InformativeText, icon...) yourself.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi,

            You can take inspiration of QApplication::aboutQt.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1

            • Login

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