Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. could someone tell me how i apply the state machine
Forum Updated to NodeBB v4.3 + New Features

could someone tell me how i apply the state machine

Scheduled Pinned Locked Moved Unsolved Game Development
6 Posts 3 Posters 1.0k 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.
  • milhaoM Offline
    milhaoM Offline
    milhao
    wrote on last edited by
    #1

    could someone tell me how I apply the state machine I saw this tutorial state machine and I didn't understand

    jsulmJ 1 Reply Last reply
    0
    • milhaoM milhao

      could someone tell me how I apply the state machine I saw this tutorial state machine and I didn't understand

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @milhao What did you not understand? Don't you think you should provide more details when asking questions?

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

      milhaoM 1 Reply Last reply
      0
      • jsulmJ jsulm

        @milhao What did you not understand? Don't you think you should provide more details when asking questions?

        milhaoM Offline
        milhaoM Offline
        milhao
        wrote on last edited by
        #3

        @jsulm sorry, I don't understand how I would apply the state machine to call functions, as I want to call function one that will print a text on leibol1 and then function 2 that will set another text on leibol 3 and finally function 4 that will give an interaction by radionbuton, how do I make this transition between functions

        jsulmJ 1 Reply Last reply
        0
        • milhaoM milhao

          @jsulm sorry, I don't understand how I would apply the state machine to call functions, as I want to call function one that will print a text on leibol1 and then function 2 that will set another text on leibol 3 and finally function 4 that will give an interaction by radionbuton, how do I make this transition between functions

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @milhao The link you posted shows how to trigger actions when a state is activated (see "Doing Useful Work on State Entry and Exit") - did you read it?

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

          milhaoM 1 Reply Last reply
          1
          • jsulmJ jsulm

            @milhao The link you posted shows how to trigger actions when a state is activated (see "Doing Useful Work on State Entry and Exit") - did you read it?

            milhaoM Offline
            milhaoM Offline
            milhao
            wrote on last edited by
            #5

            @jsulm yes, but i still don't how do i call it, how many times can i call connect, and where do i put it all?

            JonBJ 1 Reply Last reply
            0
            • milhaoM milhao

              @jsulm yes, but i still don't how do i call it, how many times can i call connect, and where do i put it all?

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by
              #6

              @milhao
              Have you had a look at, say

              • https://doc.qt.io/qt-5/qtwidgets-statemachine-eventtransitions-example.html
              • https://cpp.hotexamples.com/examples/-/QStateMachine/-/cpp-qstatemachine-class-examples.html
              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