cross platform c++ header file. separate c++ file for each platform: windows, linux, mac. Deals with platform specific implementation of enumerating windows.
on the mac side: I have a CFStringRef populated. the header file defines a QString object. I need to pass the contents of the CFStringRef to the QString.
How can this be achieved?
This is the static function used internally by Qt (from src/corelib/kernel/qcore_mac.cpp):
Update (2020): nowadays use QString::fromCFString() as @ehopperdietzel suggested in his answer.