Results 1 to 3 of 3

Thread: Chess Program Drag and drop pieces

  1. #1
    Join Date
    Apr 2009
    Posts
    12
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default Chess Program Drag and drop pieces

    Hey all


    I have the project uploaded at

    http://uploading.com/files/HU7GV7PQ/Chess.zip.html

    -you have to wait around 90 seconds to start downloading

    Anyway..when you open the project and run it and click play...you will see a board with two pawns...I want to be able to move these pawns(picture labels) on the board(background label).

    Could you PLEASE help me with this..
    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Chess Program Drag and drop pieces

    I suggest you take a look at a very interesting read.

    Once you're done you should consider reading the docs, especially the tutorials and examples.

    Then you may consider trying out the forum search function.

    If you do that you might be able to :

    1. figure out that none is going to do your work for you
    2. rephrase your question/problem in a way that allows us to answer it and prevents advanced users from dismissing your thread
    3. find the answer on your own (turns out drag and drop is well documented and there is at least one board game available in the Qt software section making use of it in the way you're interested in)

    Please don't take this personnaly though. It is part of an attempt to educate new users. Only time will tell if this a reasonnable goal.
    Current Qt projects : QCodeEdit, RotiDeCode

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Chess Program Drag and drop pieces

    Quote Originally Posted by cwnelatury View Post
    Hey all


    I have the project uploaded at

    http://uploading.com/files/HU7GV7PQ/Chess.zip.html

    -you have to wait around 90 seconds to start downloading
    Please don't do that again. Next time use the attachment feature of the forum - files placed on external sites tend to vanish after some time rendering the whole forum thread useless for others with similar problems.

    I want to be able to move these pawns(picture labels) on the board(background label).
    I don't really want to wait 90 seconds, build your application and figure out what it does, so I'll just tell you that using labels for a chess board and pawns is probably a much worse idea than using GraphicsView or model/view. So once you do what fullmetalcoder told you, consider familiarizing yourself with QGraphicsView.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

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.