How to implement multiple open executable program
-
@hyhhyh Please explain better what you want to do!
What is "multiple open executable program"?@jsulm
Purely at a wild guess --- I like these wild guesses at what certain questions might mean on this forum! --- is this the same as https://forum.qt.io/topic/138052/open-some-file-with-running-instance-of-a-qtapplication ? How to have a single instance of an application open/read a file type user double-clicks on.I wouldn't mind knowing the answer to that! In the other thread we told the OP how to go about creating a "singleton" Qt application. That bit is easy. But how would that singleton be notified if the user double-clicks another file of the same type, which we would like it to open in e.g. another tab? My guess is this is OS/windowing system specific and not covered by Qt? Anyone know?
-
Hi,
For macOS, there's QFileOpenEvent.
In any case, you have to register your application as the default to be used to open that file format.