Results 1 to 2 of 2

Thread: Developing a node-based interface

  1. #1
    Join Date
    Jan 2011
    Posts
    55
    Thanks
    12
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Smile Developing a node-based interface

    I was wondering if you could give me some suggestions and insights about a node-based interface that I need to develop.
    I already have some classes (each representing a interface node), each of those is basically a widget container, like this:

    QWidget
    - QFrame
    - QPushButtons
    - QRects (the node "handles")

    I add this nodes (i.e. widgets) to the main application window (widget->QFrame), and once the nodes are there, I'd like to drag an handle and drop it on another node handle receiver, and performe checks upon dropping.

    Do you think this is a good design? Or would be better, for example, to create custom widgets?

    Could this work or do I need absolutely to rely on QGraphicsView/QGraphicItem in order to use drag & drop action?

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Developing a node-based interface

    you dont need graphicsview/items to do drag/drop.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

Similar Threads

  1. developing with Qt on Mac OS
    By mentalmushroom in forum Newbie
    Replies: 3
    Last Post: 10th October 2011, 09:59
  2. Designing a Node Editor (Hint: Blender Node Editor)
    By Mind Calamity in forum Qt Programming
    Replies: 4
    Last Post: 5th October 2011, 16:22
  3. Replies: 0
    Last Post: 31st July 2010, 17:27
  4. Qt interface based programming
    By thedoctor in forum Qt Programming
    Replies: 4
    Last Post: 26th June 2009, 20:13
  5. how to justfy a node is leaf node or not
    By weixj2003ld in forum Qt Programming
    Replies: 4
    Last Post: 9th April 2009, 07:40

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
  •  
Qt is a trademark of The Qt Company.