I’m porting some code from C++/Qt to Python/PyQt.
What do I do with
#ifdef Q_OS_WIN
...
#else
Is there a PyQt equivalent of the Qt macro Q_OS_WIN?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Why you ever want to do this instead of using Python
sys.platformfrom sys module?I have to mention that
win32is the same even if you run on x64 python.