Results 1 to 3 of 3

Thread: question about button

  1. #1
    Join Date
    Jan 2008
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default question about button

    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..

  2. #2
    Join Date
    Jan 2008
    Posts
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: question about button

    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

  3. #3
    Join Date
    Jan 2008
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: question about button

    man its works... i just dont realize there is an option.
    thanks again..

Similar Threads

  1. How can I put a button onto the qLabel?
    By dwlnet in forum Qt Programming
    Replies: 3
    Last Post: 24th August 2007, 09:47
  2. Replies: 3
    Last Post: 13th May 2007, 20:55
  3. button question
    By aegis in forum Qt Programming
    Replies: 9
    Last Post: 1st April 2007, 09:06
  4. Disable Checkable Button Question
    By jbpvr in forum Qt Programming
    Replies: 9
    Last Post: 20th March 2007, 17:57
  5. Push button double click
    By curtisw in forum Qt Programming
    Replies: 3
    Last Post: 15th February 2006, 16:40

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.