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. How to drag&drop between QFrame and QGraphicsView
Forum Updated to NodeBB v4.3 + New Features

How to drag&drop between QFrame and QGraphicsView

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.3k 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.
  • A Offline
    A Offline
    apollo74
    wrote on last edited by
    #1

    I have to start by saying that I'm starting with Qt, so I'll appreciate your patience and help.
    I would like to develop and application which is a mixture between two of the examples that come with QtSDK: 1) the Drag and Drop > Draggable Icons, and 2) the Graphics View > Diagram Scene.
    In 1) it is possible to click over a QLabel object and drag it from one QFrame to the neighbor QFrame.
    In 2) it is not possible to click and drag, the left area contains buttons that once activated draw objects in the right area and then it is possible to create arrows going from one object to the other within the Graphics View area.
    So what I would like is to have a mix of these two examples, is it possible??? I would like to click and drag an object from a bank/menu/list (the left frame) to a main area where I can create connections with arrows between several objects.
    From what I've tried so far, I'm guessing that it is not possible to mix QLabel objects to QGraphicsItems... I'm very confused about what to use in Qt, it seems there are several approaches to designing the same thing. Any help will be greatly appreciated.

    Boris

    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