Results 1 to 4 of 4

Thread: load draggable pictures

  1. #1
    Join Date
    Sep 2016
    Posts
    4
    Qt products
    Qt5
    Platforms
    Windows

    Default load draggable pictures

    i am new in qt,i have pictures (1.png/2.png/...../20.png ),i want when the user click in a button exemple add image the first image 1.png diplayed then if he click another time 2.png displayed .... with the possibility of moving pictures
    anyone can help me

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: load draggable pictures

    Put the image list into a QStringList, make the slot that is connected to the button increase an index value and take the respective filename to load the image for display.

    Cheers,
    _

  3. #3
    Join Date
    Sep 2016
    Posts
    4
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: load draggable pictures

    Thanks for the answer
    can you give me a small example plz ?

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: load draggable pictures

    Quote Originally Posted by PSYCOR View Post
    can you give me a small example plz ?
    Example for what?

    Cheers,
    _

Similar Threads

  1. Draw a line with draggable
    By cskumar in forum Newbie
    Replies: 6
    Last Post: 12th August 2015, 17:52
  2. QGraphicsItem selectable and also draggable
    By corrado1972 in forum Qt Programming
    Replies: 2
    Last Post: 30th November 2011, 16:39
  3. Draggable QActions in Qt
    By vajindarladdad in forum Newbie
    Replies: 6
    Last Post: 14th August 2009, 11:15
  4. Implement draggable QWtplotmarker
    By shud in forum Qwt
    Replies: 3
    Last Post: 13th August 2009, 06:25
  5. Draggable Button
    By blueescort in forum Qt Programming
    Replies: 4
    Last Post: 6th November 2008, 07: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.