Results 1 to 2 of 2

Thread: Drawing rectangle containers ;

  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 Drawing rectangle containers ;

    Hello;

    I'm building an editor (similar to MS Visio) to draw a hierarchical finite state machine. Hence I need to draw rectangles (states) that are:

    - Highlightable
    - Selectable
    - Support for Drag and Drop within the drawing area.
    - Rectangle content is dragged with the rectangle itself.

    I wonder which UI components should I use for:
    - My rectangle
    - The drawing area

    Please refer to inserted images for the two possible hierarchies.
    hiriechical state.jpg
    State containing substates.jpg
    Last edited by mut; 24th June 2014 at 17:34.

  2. #2
    Join Date
    Jul 2008
    Posts
    424
    Thanks
    9
    Thanked 54 Times in 52 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Drawing rectangle containers ;

    Hi, QGraphicsView and friends will help you.

    Ginsengelf

Similar Threads

  1. Drawing of Rectangle which is rounded from only two side
    By vinayptl in forum Qt Programming
    Replies: 1
    Last Post: 5th March 2013, 07:03
  2. Drawing a rectangle over Qlabel image
    By cheyanne in forum Newbie
    Replies: 16
    Last Post: 13th October 2011, 09:05
  3. Prevent QStyledItemDelegate from drawing focus rectangle
    By stefanadelbert in forum Qt Programming
    Replies: 4
    Last Post: 15th July 2010, 09:43
  4. Drawing a selection rectangle
    By Caius Aérobus in forum Qt Programming
    Replies: 7
    Last Post: 4th April 2009, 15:47
  5. Replies: 3
    Last Post: 4th June 2007, 09:51

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.