Closed matkuki closed 1 year ago
I see what you mean. But not sure if it can be added. Is that possible in Qt with c++?
If it is not possible, then the proc fileOpen
should somehow know that it should be a slot in a QObject
(maybe a pragma?). But I'm not too inclined to implement it in this case then :)
Just tested it to be sure and yes, the above code works in C++ (added the needed includes into the above code). I think it's this signature for the QObject: https://doc.qt.io/qt-5/qobject.html#connect-4
I finally figured out how to do it, and should work just like the regular connect
:)
An example can be found in examples/hello.nim
Excellent, works like a charm 👍👍👍👍 Thank you!
Could this be added, connecting a free standing
proc
to a signal?