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 can I change the menu name different with my project name?
Forum Updated to NodeBB v4.3 + New Features

How can I change the menu name different with my project name?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 305 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.
  • P Offline
    P Offline
    pengxu
    wrote on last edited by
    #1

    I have an mac application, How can I change the menu name different with my project name?
    Screen Shot 2020-03-26 at 2.10.09 AM.png
    I want to change "Hide obs" to "Hide OBS123" and "Quit obs" to "Quit OBS123"

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

      Hi,

      Did you do setup your application name ?
      Only in your .pro file ?

      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
      0
      • P Offline
        P Offline
        pengxu
        wrote on last edited by
        #3

        I'm using c++ and qt to develop, but I do not have an qt project, so I can not set up my app name in .pro file。 The project is created from cmake

        J.HilkJ 1 Reply Last reply
        0
        • P pengxu

          I'm using c++ and qt to develop, but I do not have an qt project, so I can not set up my app name in .pro file。 The project is created from cmake

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by J.Hilk
          #4

          @pengxu you can specify the application name in main.cpp

          QCoreApplicationName("MyNameHere"); IIRC you should set that before you instantiate the QApplication.

          Thats for QSettings 🤦‍♂️

          in QML you have thetitle property (of for example ApplicationWindow) for QWidgets you have the setWindowTitle(QString) function to do the same


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          2

          • Login

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