How to prevent Screen lock ios with Qt
问题 I want to develop an app in Qt for iOS that contains a map. During the use, the screen lock of the phone should be disabled. But I can't find any solution how to prevent the screen lock in iOS using Qt. How can be done that? 回答1: You must use the native iOS api. You can compile ObjC++ code directly with the clang compiler in your Qt application. So you can mix .cpp and .mm (ObjC++) files. QtCreator and qmake support this via the OBJECTIVE_SOURCES keyword. In a yourclass.mm implementation: