On Donnerstag, 8. Oktober 2015 09:38:45 CEST, Pali Rohár wrote:
I know that there is some PPA for Qt5. I did not try it because KDE4 plugins (addressbook) is incompatible with Qt5. This is something which I need...
The never-to-be-ported KABC addressbook? Ie. you're restricted to Qt4 forever?
On the other hand, it is not possible to write needed C++ macros which wrap non existent Qt5 calls into Qt4?
Rather "No" We can unconditionally mandate c++11 (yesyesyesyesyesprettyprettyplease!!) but the signal/slot API is far off. The macro would have to take varadic args (one being the namespace, ignored on Qt4) and conditionally turn them into function pointer or method string. Aside this would be quite some macro (and compile time checks aren't always possible, eg. if your connect into other plugins etc), there's *no* chance to connect lambdas in Qt4 - what's by far the most interesting feature in the new connect syntax. Cheers, Thomas
