Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Choosing proper QWidget for drop site

Choosing proper QWidget for drop site

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 3.1k Views 1 Watching
  • 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.
  • C Offline
    C Offline
    ckw089
    wrote on last edited by
    #1

    Hi,

    I am new in Qt programming. I would like to create an application that is similar to those applications used to draw UML diagram, but my application is not really drawing UML diagram.

    My application is to enable user to drag and drop different "nodes", and use lines to connect all these "nodes" to form a tree kind of structure. For each tree, there will be a root node, form root the tree will branch out, at the bottom will be all the leave nodes.

    I know Qt supports drag and drop. And I probably can use QListView to display all the possible "nodes" for user to select from. I just not sure which QWidget is suitable for the drop site, where user is free to move and locate the nodes, and then connect them together with lines to build a tree.

    rgds,

    kc Wong

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2

      I think that Graphics Framework will be the best for you.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        ckw089
        wrote on last edited by
        #3

        Thanks for reply.

        But, I am not sure about Graphics Framework. What does it refer to ?

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenisKormalev
          wrote on last edited by
          #4

          Search in Assistant for QGraphicsView and QGraphicsScene.

          1 Reply Last reply
          0
          • C Offline
            C Offline
            ckw089
            wrote on last edited by
            #5

            Thanks Denis.

            At least I know where to start now.

            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