Results 1 to 3 of 3

Thread: odd shaped buttons

  1. #1
    Join Date
    Sep 2009
    Location
    UK
    Posts
    15
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Question odd shaped buttons

    Hi,
    Does anyone know how to implement odd shaped / non-rectangular buttons?

    Cheers
    Jim


  2. #2
    Join Date
    Sep 2009
    Posts
    140
    Thanks
    4
    Thanked 17 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: odd shaped buttons

    On solution is to do the painting yourself from scratch of your odd shape.

    But another solution is to use the QWidget::setMask with a mask created from QBitmap or QRegion that provide a lot of drawing facilities.

    S.Cascio

  3. The following user says thank you to scascio for this useful post:

    jimiq (17th September 2009)

  4. #3
    Join Date
    Mar 2008
    Posts
    27
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: odd shaped buttons


  5. The following user says thank you to profoX for this useful post:

    jimiq (17th September 2009)

Similar Threads

  1. custom shaped buttons
    By jsabater in forum Qt Programming
    Replies: 5
    Last Post: 2nd July 2009, 15:17
  2. tool buttons on top of label
    By McKee in forum Qt Programming
    Replies: 5
    Last Post: 2nd November 2008, 17:07
  3. qt3 to qt4 conversion: no toolbar buttons
    By hugo vanwoerkom in forum Qt Programming
    Replies: 9
    Last Post: 25th October 2007, 18:07
  4. Custom shaped forms and controls
    By AlbertGoodwill in forum Qt Programming
    Replies: 1
    Last Post: 19th October 2007, 07:35
  5. Problem with Parent QWidget and Buttons not working
    By VireX in forum Qt Programming
    Replies: 7
    Last Post: 11th May 2007, 23:24

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.