Results 1 to 5 of 5

Thread: Finite state machine editor using QWidgets

  1. #1
    Join Date
    Apr 2014
    Posts
    125
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Android Maemo/MeeGo

    Question Finite state machine editor using QWidgets

    Hello;

    I need to write an editor (similar to Microsoft Visio) allowing the drawing of a hierarchical finite state machine and eventually generate the structure of the state machine into a XML. I have the following requirements:
    - State: a clickable, highlightable, drag and drop resizable rectangle. A text (the state name) shall be displayed inside the rectangle at the top leaving the center empty for an eventual substate.
    - A Substate: just a state inside a state
    - Transition: a line joining two states. A text (the event name corresponding to the transition) shall be displayed along the line.

    The State, Substate and Transition will reside in a toolbox and will be dragged into a drawing area and drop there by the user.

    Should I use Graphics Items?

    Any sample code and pointers to good links?

    My requirement is to stick to Qt Widgets.

    Thanks;

    Mut.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Finite state machine editor using QWidgets

    Yes, that does sound a lot like a use case for QGraphicsView

    On the topic of state machine editors: at the recent Qt contributor summit there was talk about such a thing becoming available soon, even integrated in some way into QtCreator as far as I understand.

    Cheers,
    _

  3. #3
    Join Date
    Apr 2014
    Posts
    125
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Android Maemo/MeeGo

    Question Re: Finite state machine editor using QWidgets

    Hello;

    Thank you for the reply. Any chance that you have the link to that talk and the author.

    Mut.

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Finite state machine editor using QWidgets

    Quote Originally Posted by mut View Post
    Thank you for the reply. Any chance that you have the link to that talk and the author.
    Unfortunately not, but it might have also been discussed on the Qt Creator or Qt development mailing list.

    It might also appear in the QtCreator&Tooling meeting minutes at some point

    https://etherpad.wikimedia.org/p/Qs2014QtCretorTooling

    Cheers,
    _

  5. #5
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Finite state machine editor using QWidgets

    This could be interesting to you https://github.com/KDAB/KDStateMachineEditor

    Cheers,
    _

Similar Threads

  1. Question to state Machine and *.ui
    By nernst in forum Qt Programming
    Replies: 7
    Last Post: 17th June 2014, 09:23
  2. State Machine returning to previous state
    By akiross in forum Qt Programming
    Replies: 2
    Last Post: 10th May 2011, 00:39
  3. Replies: 0
    Last Post: 19th December 2010, 16:03
  4. State machine implementation
    By yyiu002 in forum Qt Programming
    Replies: 1
    Last Post: 28th June 2010, 04:57
  5. NLE Editor using QWidgets/QGraphicsView
    By depsch in forum Newbie
    Replies: 0
    Last Post: 14th September 2009, 23:07

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.