Results 1 to 6 of 6

Thread: Using <QColorDialog>

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Using <QColorDialog>

    Debug what? The selected colour is assigned to the "color" variable of yours.

  2. #2
    Join Date
    Dec 2007
    Posts
    22
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Using <QColorDialog>

    I know, but I want to do some color manipulation and see the result

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Using <QColorDialog>

    Well, you can always print the color to debug output:
    Qt Code:
    1. #include <QtDebug>
    2. ...
    3. qDebug() << color;
    To copy to clipboard, switch view to plain text mode 
    Or you can fill a widget with the color so you can see it with your own eyes:
    Qt Code:
    1. widget->setStyleSheet(QString("background: %1").arg(color.name()));
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

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.