Results 1 to 5 of 5

Thread: triangular and rouned buttons

  1. #1
    Join Date
    Mar 2010
    Posts
    4
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default triangular and rouned buttons

    Hello,

    please how I can create rectangualars an rounded buttons with Qt 4.6.2 and put them like this:



    thank you very much

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: triangular and rouned buttons

    How about subclassing QAbstractButton? or perhaps QPushButton and overriding the virtual paint method? You'll need to provide a new hittest method as well I would think so Qt knows when the button is clicked.

  3. #3
    Join Date
    Mar 2010
    Posts
    4
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: triangular and rouned buttons

    please can you make me an example?
    I would like to insert theses 5 buttons into a resizable widget (with QLayout)

  4. #4
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: triangular and rouned buttons

    Take a look at Qt's Pie menu.
    I'm a rebel in the S.D.G.

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

    kenouz1234 (7th March 2010)

  6. #5
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: triangular and rouned buttons

    I guess the embedded widgets 5 way button fits your requirement,.
    Have a look at embedded widgets source code

  7. The following user says thank you to aamer4yu for this useful post:

    kenouz1234 (7th March 2010)

Similar Threads

  1. qvfb buttons
    By TheJim01 in forum Newbie
    Replies: 0
    Last Post: 16th February 2010, 20:44
  2. Tool Buttons...
    By csvivek in forum Qt Tools
    Replies: 1
    Last Post: 9th May 2008, 07:44
  3. Decorations and Buttons
    By ZioMiP in forum Newbie
    Replies: 2
    Last Post: 2nd May 2008, 09:43
  4. Colored Buttons
    By Walsi in forum Newbie
    Replies: 33
    Last Post: 8th December 2007, 12:58
  5. Several buttons
    By Mariane in forum Newbie
    Replies: 4
    Last Post: 15th March 2006, 20:50

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
  •  
Qt is a trademark of The Qt Company.