Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt Quick StateMachine Asserts when using MouseArea::pressed signal
QtWS25 Last Chance

Qt Quick StateMachine Asserts when using MouseArea::pressed signal

Scheduled Pinned Locked Moved QML and Qt Quick
statemachineqtquick
1 Posts 1 Posters 679 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.
  • K Offline
    K Offline
    Korchkidu
    wrote on last edited by Korchkidu
    #1

    Hi,

    Why am I getting ASSERT: "qobjectSignal" in file signaltransition.cpp, line 95 in the following example?

    import QtQuick 2.4
    import QtQuick.Controls 1.3
    import QtQml.StateMachine 1.0 as FSM
    
    ApplicationWindow
    {
      title: qsTr("Test FSM")
      width: 640
      height: 480
      visible: true
    
      MouseArea
      {
        id: userInputMouseArea
        anchors.fill: parent
    
        onPressAndHold: console.log("MouseArea triggered PressedAndHold")
        onPressed: console.log("MouseArea triggered Pressed")
    
        FSM.StateMachine
        {
          id : userInputFSM
          initialState: idle
          running: true
          FSM.State
          {
            id: idle
            FSM.SignalTransition
            {
              // OK
              signal: userInputMouseArea.pressAndHold
              onTriggered: console.log("FSM triggered PressAndHold")
            }
            FSM.SignalTransition
            {
              //// ASSERT: "qobjectSignal" in file signaltransition.cpp, line 95
              signal: userInputMouseArea.pressed // <<========
              onTriggered: console.log("FSM triggered Pressed")
            }
          }
        }
      }
    }
    

    Thanks for any.
    Best regards.

    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