Results 1 to 2 of 2

Thread: OK / Cancel buttons on QColorDialog

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2010
    Posts
    21
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default OK / Cancel buttons on QColorDialog

    Hello,

    Even if Cancel button the dialog is pressed, the color on the dialog is selected. How can I prevent this case?

    Thanks...

  2. #2
    Join Date
    Nov 2011
    Posts
    9
    Qt products
    Qt3
    Platforms
    MacOS X

    Default Re: OK / Cancel buttons on QColorDialog

    You probably catch the wrong signal.
    If you use : void QColorDialog::currentColorChanged ( const QColor & color )

    reconnect to:
    void QColorDialog::colorSelected ( const QColor & color )

Similar Threads

  1. How to custom Buttons in QColorDialog
    By picobsd in forum Qt Programming
    Replies: 3
    Last Post: 31st August 2011, 10:37
  2. QColorDialog
    By angarali06 in forum Newbie
    Replies: 1
    Last Post: 17th April 2011, 19:02
  3. QColorDialog
    By BrainFreeze in forum Qt Programming
    Replies: 3
    Last Post: 6th March 2011, 04:45
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05
  5. Using <QColorDialog>
    By Gily in forum Newbie
    Replies: 5
    Last Post: 26th December 2007, 20:26

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.