PDA

View Full Version : How to make Qt3 apps behave similar to Qt4 apps on MACOSX?



Alex_123
26th June 2009, 18:53
Hey, everyone.

When I launch an application made with Qt3 on MACOSX(10.4) from Terminal (instead of an .app bundle) all top level widgets seem like children of the terminal window. And menu is the Terminal menu. However, I don't have this problem in Qt4. I can launch applications from executable files (instead of the .app bundle) and they work perfectly. So I was wondering if there's kind of a workaround.
The main reason I need it is to launch a child process from main Qt3 application. Now when I do it using execve and fork (in order to receive SIGCHLD after it finishes), the child application (that also uses Qt3) has the same menu as the main app. Plus, its widgets are always under the main application widgets.