PDA

View Full Version : question about button



narumi
20th January 2008, 01:36
Hi.. Im new here and this is my first topic in forum. Greeting to all of you..

I have a question regarding button, actually I want to create a button that seems like Kaffeine Player or K3B where the text is below the icon (text "Play DVD" below DVD drive icon). Im working with QT Designer right now and there is two button widget available which is push button and tool button. which one I need to use? I have try both but it not look alike (push button allow text at right of the icon while tool button text been overtaken by icon itself) Any help appriciate..

nehlsen
20th January 2008, 02:20
hi,
i have only checked it for qt4, but:

- create a QToolButton
- in the property editor scroll to the very bottom, and change:
toolButtonStyle to Qt::ToolButtonTextUnderIcon
- make the icon e.g. 64x64 and voila .....

hope that helps

narumi
21st January 2008, 05:44
man its works... i just dont realize there is an option.
thanks again..