Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Is there a way I can limit CPU speed from Qt?
mandruk1331 last edited by
Is there a way I could limit CPU speed. For example, the user has a filed where he writes number 60, and the CPU will work at 60 percent.
JohanSolo last edited by
AFAIK there is no way in any language to achieve that. This would require the program to evaluate what it needs, then limit itself by some obscure mechanism. This would then have to be tuned for each machine on which it runs.
@mandruk1331 For sure not in Qt.
You would need to use APIs provided by the operating system (win32 API on Windows for example).