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. Wait a signal inside of the function. How?
Forum Updated to NodeBB v4.3 + New Features

Wait a signal inside of the function. How?

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 367 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.
  • B Offline
    B Offline
    bogong
    wrote on last edited by
    #1

    Hello all!
    Is there any way to wait a signal inside of the function without timer and additional variable and slot (I mean flag-technique)?

    JonBJ 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Can you explain your use case ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • B bogong

        Hello all!
        Is there any way to wait a signal inside of the function without timer and additional variable and slot (I mean flag-technique)?

        JonBJ Online
        JonBJ Online
        JonB
        wrote on last edited by
        #3

        @bogong
        If you have to, you can write code to use QEventLoop so that you can "wait" on a signal. However, this is not always the best idea. So do explain your use case to @SGaist .

        B 1 Reply Last reply
        3
        • JonBJ JonB

          @bogong
          If you have to, you can write code to use QEventLoop so that you can "wait" on a signal. However, this is not always the best idea. So do explain your use case to @SGaist .

          B Offline
          B Offline
          bogong
          wrote on last edited by bogong
          #4

          @JonB Thx. Issue closed. QEventLoop works for me. Here example.

          1 Reply Last reply
          0

          • Login

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