Results 1 to 16 of 16

Thread: QMimeData: setting and getting the right MIME types for arbitrary widgets

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Join Date
    Jun 2014
    Posts
    98
    Thanks
    43
    Thanked 4 Times in 4 Posts
    Platforms
    Windows

    Default Re: QMimeData: setting and getting the right MIME types for arbitrary widgets

    Quote Originally Posted by anda_skoa View Post
    If you want widgets that can be moved using the mouse, you can implement the movement directly in the mouse event handler methods.
    The Drag&Drop classes are for transferring data, often across different applications (e.g. from a file manager to a program that should open these files).

    In the most usual cases widget locations and sizes are managed by layouts, which position and resize child widgets within their parent's boundaries.
    But you can manage that yourself of course.

    I guess it depends on what you are trying to achieve, i.e. whether QGraphicsView is a better approach or not.

    Cheers,
    _

    My goal is to make a desktop application in which I have multiple widgets open that the user can move around with drag/drop. Basically a to do list app (yes, I know, that is trite ). Something like the following markup:
    layout_example_toPost.jpg

    Given that goal, do you think QGraphicsView would be better? (Note someone has responded at Stack Overflow as well and I have yet to implement their suggestions). Or more accurately, do you think it would stupid to try to do it without using QGraphicsView?
    Last edited by neuronet; 6th July 2014 at 13:35. Reason: clarifying

Similar Threads

  1. Setting width of widgets from QSplitter?
    By adutzu89 in forum Newbie
    Replies: 4
    Last Post: 24th May 2014, 13:07
  2. Replies: 3
    Last Post: 11th August 2011, 17:16
  3. Replies: 4
    Last Post: 10th December 2009, 16:37
  4. Arbitrary widgets placement in window.
    By someralex in forum Qt Programming
    Replies: 1
    Last Post: 20th December 2006, 12:14
  5. MIME database and QMimedata
    By nupul in forum Qt Programming
    Replies: 12
    Last Post: 12th April 2006, 14:36

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.