Results 1 to 3 of 3

Thread: Designing a QGraphics view framework application

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2013
    Posts
    14
    Thanks
    3
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Designing a QGraphics view framework application

    Hi, I have a code design question.

    When creating an application with QGraphicsView and QGraphicsScene, is it bad design to let the scene handle user interface issues (like opening QDialogs or QWizards) and handle mouse events? In my case I need the user to specify some properties of QGraphicsItems before creating them by filling in a QWizard and later modify these properties by using a QDialog - where should this be handled?

    Also, in the Diagram scene example for the QGraphics view framework, the QGraphicsItem context menus are all handled by the QMainWindow - is this a good approach?

    What if I want a double click on a QGraphicsItem to open a dialog? Would the item need to know about dialogs?

    Any other tips when designing such an application?

    Thanks in advance.

  2. The following user says thank you to regular for this useful post:


Similar Threads

  1. To any Qgraphics framework guru... need a solution...
    By tonnot in forum Qt Programming
    Replies: 4
    Last Post: 30th November 2011, 08:31
  2. Creating Qgraphics View code
    By amagdy.ibrahim in forum Qt Programming
    Replies: 9
    Last Post: 15th June 2008, 15:43
  3. Qgraphics View
    By amagdy.ibrahim in forum Qt Programming
    Replies: 1
    Last Post: 15th June 2008, 10:10
  4. QGraphics view update : Help needed
    By kiranraj in forum Qt Programming
    Replies: 3
    Last Post: 3rd July 2007, 12:54
  5. QGraphics view problem
    By kiranraj in forum Qt Programming
    Replies: 5
    Last Post: 6th March 2007, 21:28

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.