Results 1 to 4 of 4

Thread: How to custom Buttons in QColorDialog

  1. #1

    Default How to custom Buttons in QColorDialog

    the customer want to have a "Apply" button in the QColorDialog, How can I add apply button to the QColorDialog?

    thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to custom Buttons in QColorDialog

    You Subclass it...
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3

    Default Re: How to custom Buttons in QColorDialog

    Quote Originally Posted by high_flyer View Post
    You Subclass it...
    and then, how to add? i think there is no way to add even subclass it.

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to custom Buttons in QColorDialog

    Just normally, you add a button... where is the problem?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Custom buttons using style sheets
    By GrahamLabdon in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2011, 21:53
  2. QMessageBox custom buttons icons
    By asik in forum Newbie
    Replies: 2
    Last Post: 2nd December 2010, 16:37
  3. custom shaped buttons
    By jsabater in forum Qt Programming
    Replies: 5
    Last Post: 2nd July 2009, 14:17
  4. Custom buttons problem
    By giotto in forum Qt Programming
    Replies: 7
    Last Post: 7th February 2008, 21:56
  5. Main window with custom buttons ?
    By probine in forum Qt Programming
    Replies: 1
    Last Post: 22nd November 2006, 06:32

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.