Need a function to check if there is an App on the desktop on macOS.

Job ID: 36965971

Budget: $10 – $50 USD

Hi Everyone.

I need a function to check if there is an App on the desktop on macOS.

Prototype

int isVisibleProcess(QString szAppName)
- return 0 if AppName is not running
- Return 0 if this App is hided (On mac, we can Hide app from desktop)
- Return 0 if this App is minimized
- If there are multiple same app processes, return 1 if at least one window exists on the desktop.
- Return 1 in other cases

** That is, return 1 if the app is on the desktop and visible, otherwise it returns 0.

Developer tool: Must developed by Qt 6.4 (Compatible with Qt6.4)
Environment : macOS
Related categories: Mac OS C++ Programming Qt