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. How to use Windows Message Loop and Qt Application Exec?

How to use Windows Message Loop and Qt Application Exec?

Scheduled Pinned Locked Moved General and Desktop
23 Posts 7 Posters 13.7k 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.
  • Y YJCN
    21 Sept 2018, 01:41

    @jsulm @JonB @mrjj Yes, you are right !!! I comment the "break" . It works well!! THANK YOU!☺☺☺☺☺☺☺☺☺☺

    J Offline
    J Offline
    JonB
    wrote on 21 Sept 2018, 06:52 last edited by
    #21

    @YJCN
    You have to do more than just comment out the break, if that's what you're saying. If that's all you do the ::GetMessage() loop will never exit, and your code will never return from on_pushButton_2_clicked(), e.g. you cannot press it again to take another photo. Presumably you need to find out whatever is the final message your camera issues on taking a photo and exit the loop once that has been received.

    Y 1 Reply Last reply 22 Sept 2018, 07:17
    2
    • J JonB
      21 Sept 2018, 06:52

      @YJCN
      You have to do more than just comment out the break, if that's what you're saying. If that's all you do the ::GetMessage() loop will never exit, and your code will never return from on_pushButton_2_clicked(), e.g. you cannot press it again to take another photo. Presumably you need to find out whatever is the final message your camera issues on taking a photo and exit the loop once that has been received.

      Y Offline
      Y Offline
      YJCN
      wrote on 22 Sept 2018, 07:17 last edited by
      #22

      @JonB Yes. I just use a five times for loop to solve it . ^_^

      J 1 Reply Last reply 22 Sept 2018, 08:33
      0
      • Y YJCN
        22 Sept 2018, 07:17

        @JonB Yes. I just use a five times for loop to solve it . ^_^

        J Offline
        J Offline
        JonB
        wrote on 22 Sept 2018, 08:33 last edited by
        #23

        @YJCN
        I don't know if your response is serious or amused. Doing it "five times" is very flaky. Isn't there a particular message number you get which you need to wait for to indicate it's now OK to leave the loop?

        1 Reply Last reply
        2

        21/23

        21 Sept 2018, 06:52

        • Login

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