Hi
I want to create play, pause and stop buttons on QT form. I am using QT designer.
can anyone please tell me how can i do this?
Hi
I want to create play, pause and stop buttons on QT form. I am using QT designer.
can anyone please tell me how can i do this?
Use QToolButtons.
i want to create play, pause and stop buttons as we get in Windows media player.
i will be creating separate buttons for play and pause.
i want their representation to match with those in Windows media player.
is it possible using QT?
As wysota said, use QToolButton
and use the function void setIcon ( const QIcon & icon ) of QToolButton .
http://doc.trolltech.com/4.2/qabstra...html#icon-prop
It is very much possible in Qt. From what I understood, you are looking for a button that can has a pixmap - the Normal one, and upon mouse hover you want to change it to a Hover pixmap. and then upon pressing the pressedPixmap. Moreover The pixmap can have transparency/mask and the masked portion has to be hidden. Is this your requirement ?
AFAIK, there is no widget that readily gives you this option. But you can subclass QButton to create a skinned button. I have seen one such in codeskipper.com. You can have a look at it
We can't solve problems by using the same kind of thinking we used when we created them
Thanks.....
how can i disable the Qtoolbutton?
If i click on the pixmap for play button then i need to show that the same play button is disabled. Do i need to replace the pixmap for that tool button or is there any other way??
Bookmarks