Qt 4.8.5 Mac Handle file dropping on the dock icon

I port some Qt applications on Mac OS. And you have some questions because I have no experience developing applications for Mac OS.

  • Where do applications usually save settings on Mac OS?
  • How to handle file deletion on the icon in the dock?
+2
source share
1 answer

Mac OS X applications typically save their settings in ~/Library/Preferences/an XML document called a property list . If you use QCoreApplication::setOrganization(..)all the methods, just use QSettings and your code will remain cross-platform and do it right.

, , Qt Quarterly, . :

  • Info.plist , .
  • QApplication QEvent:: FileOpen.
+2

Source: https://habr.com/ru/post/1613881/


All Articles