Have you already tried anything? Is using Qt3 a requirement or can you use Qt4? Is it a school assignment?
Have you already tried anything? Is using Qt3 a requirement or can you use Qt4? Is it a school assignment?
I tried to put a pushbutton with the image and hide the image. then show it when it is clicked. it does not work.
actually it is a school assigment.
i am using qt3, not allowed to use qt4
If it is a school assignment, we can't help you too much with it or else you will not learn anything. I can advise you to consider using QCanvas to visualize your game board or create a custom widget that will handle the board. If you override proper events, you'll be able to react on mouse clicks, changing the images the way you want.
You can also use a minimalistic approach and have 30 buttons inside a layout and change pixmaps associated with those buttons when the user clicks one of them.
rjk (6th December 2007)
Bookmarks