Results 1 to 3 of 3

Thread: drag and drop pushbutton

  1. #1
    Join Date
    May 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Question drag and drop pushbutton

    good day! i'm having trouble creating a draggable button.. im using qt for only about 2 weeks..can somebody please help me? i'm using qt designer..

    i know that this topic is already discussed so many times but i'm a newbie, i only understand it a bit.. can anyone provide me a sample code on how to do it and a simple explanation? pls? thanks in advance..

    deng, philippines

  2. #2
    Join Date
    May 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: drag and drop pushbutton

    i've tried to look at the draggable text example on the Qt Assistant but i'm kinda lost 'cause i'm using the Qt designer..

    what i'm trying now is to modify the draggable text example to draggable buttons.. but still, my aim is to create a draggable button using the Qt designer..

  3. #3
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: drag and drop pushbutton

    for draggable text .. learn QGraphicsView(), QGraphicsScene() and QGraphicsTextItem () and how to design this three ... in QGraphicsScene u can drag that text item anywhere freely by just setting the flag
    graphicsItem ->setFlag(QGraphicsItem::ItemIsMovable); ..

Similar Threads

  1. Drag and Drop QTableWidget in UI file.
    By tpf80 in forum Qt Programming
    Replies: 3
    Last Post: 20th January 2009, 23:02
  2. drag and drop QToolButton in QToolBar
    By NBilal in forum Qt Programming
    Replies: 1
    Last Post: 28th December 2008, 20:11
  3. Change cursor & status during Drag & Drop
    By ronlongo in forum Qt Programming
    Replies: 0
    Last Post: 1st December 2008, 16:56
  4. Drag & Drop when parent and childs accept drops?
    By gri in forum Qt Programming
    Replies: 0
    Last Post: 17th October 2008, 09:00
  5. Drag and drop revisited
    By Big Duck in forum Newbie
    Replies: 2
    Last Post: 30th June 2006, 16:41

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.