Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. What is QThread::loopLevel()?

What is QThread::loopLevel()?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 725 Views 1 Watching
  • 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.
  • CJhaC Offline
    CJhaC Offline
    CJha
    wrote on last edited by
    #1

    Hi, while browsing through the documentation of QThread I came across int QThread::loopLevel() const, the only explanation for it is: Returns the current event loop level for the thread. What does this return value mean? I tried searching for it but there is no mention of 'Loop Level' (or any kind of Level) in QEventLoop or QEvent class.

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      Returns the number of event loops running in that thread.

      QThread::exec() spawns an event loop, if you then create other QEventLoops in this thread and exec() them then this count will increase

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      6

      • Login

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