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. I'm trying to create an system tray application~

I'm trying to create an system tray application~

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 846 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.
  • Y Offline
    Y Offline
    yarco
    wrote on last edited by yarco
    #1

    Em, I'm trying to create a system tray tool, which can allow me to copy & paste math symbols easily...
    But I have problems on hiding the application icon in mac dock.( I mean it should be a simple pop up window when clicking the application icon in the system tray)
    The solution seems simple:
    https://stackoverflow.com/questions/49053792/start-a-qt-tray-process-without-dock-icon-on-mac
    Just add a key-value in Info.plist under mac... But how to make it available when under development in Qt Designer? ( or, the deployment is another process?)

    QMAKE_INFO_PLIST = Info.plist
    
    DISTFILES += \
        README.md \
        Info.plist
    

    These settings in the project file seem does not work.

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

      Hi,

      Does your Info.plist file contain only what was posted on the stack overflow answer ?

      What version of Qt are you using ?
      What version of macOS are you running ?

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

      Y 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Does your Info.plist file contain only what was posted on the stack overflow answer ?

        What version of Qt are you using ?
        What version of macOS are you running ?

        Y Offline
        Y Offline
        yarco
        wrote on last edited by yarco
        #3

        @SGaist

        <?xml version="1.0" encoding="UTF-8"?>
        <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
        <plist version="1.0">
        <dict>
        <key>NSUIElement</key>
        <string>1</string>
        </dict>
        </plist>
        

        Hi, this is the content of my Info.plist.

        Qt version is: 5.11.2
        And Mac is High Sierra v10.13.6

        Em...Even I manually change the Info.plist in debug version application:

        tail ./build-MathSymbolDict-desktop-Debug/MathSymbolDict.app/Contents/Info.plist 
        	<key>NOTE</key>
        	<string>This file was generated by Qt/QMake.</string>
        	<key>NSPrincipalClass</key>
        	<string>NSApplication</string>
        	<key>NSSupportsAutomaticGraphicsSwitching</key>
        	<true/>
        	<key>NSUIElement</key>
        	<string>1</string>
        

        When the application run, I still can see the icon in the dock...

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

          Can you provide a minimal compilable example that shows that behaviour ?

          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

          • Login

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