Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Is there a way I can limit CPU speed from Qt?

Is there a way I can limit CPU speed from Qt?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 3 Posters 655 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mandruk1331M Offline
    mandruk1331M Offline
    mandruk1331
    wrote on last edited by
    #1

    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.

    Mandruk1331

    jsulmJ 1 Reply Last reply
    0
    • JohanSoloJ Offline
      JohanSoloJ Offline
      JohanSolo
      wrote on last edited by
      #2

      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.

      `They did not know it was impossible, so they did it.'
      -- Mark Twain

      1 Reply Last reply
      1
      • mandruk1331M mandruk1331

        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.

        jsulmJ Online
        jsulmJ Online
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @mandruk1331 For sure not in Qt.
        You would need to use APIs provided by the operating system (win32 API on Windows for example).

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved