Results 1 to 5 of 5

Thread: Drag&Drop problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: Drag&Drop problem

    Quote Originally Posted by m1k3l3 View Post
    i want make a simple "simulator logic circuits" with only AND, OR, NOT gate (C++/QT).
    Sounds like a perfect candidate for yet another graphics view based application.

    For make the circuit i use Drag&Drop, i begin the project editing this example ( http://doc.trolltech.com/4.4/dragand...ableicons.html ).
    That application was written to demonstrate DnD functionality in a simple way. I'm not convinced it is flexible enough for your purposes.

    - how can i delete the images?
    From user's point of view, how do you want to delete them?

    - And i need to link the image with a line. I thought to drag the gate and drop over another gate and make the line with the images coordinates ...but i dont know how i can do that.
    If you really insist doing it the hard way, store a list of labels in the parent (or find them dynamically at run-time) and paint lines between labels' positions.
    J-P Nurmi

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

    m1k3l3 (24th September 2008)

Similar Threads

  1. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 10:12
  2. Steps in solving a programming problem?
    By triperzonak in forum General Programming
    Replies: 8
    Last Post: 5th August 2008, 09:47
  3. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 11:35
  4. Problem with drag&drop in qlistview
    By mambo in forum Qt Programming
    Replies: 2
    Last Post: 11th September 2006, 17:14
  5. Replies: 16
    Last Post: 7th March 2006, 16:57

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.