PDA

View Full Version : Embed QColorDialog as a widget



totem
22nd January 2010, 13:46
Hi !

I'm looking for a neat color picker widget to embed in a window. QColorDialog provides the exact functionnalities i'm looking for, but it's a dialog, not a widget; I didn't succeed in include it as a child widget in my app. Do you know if it's possible ?

thanks


PS : i already tried QtColorPicker, but there is no alpha-channel nor custom colors support..

high_flyer
22nd January 2010, 14:39
QColorDialog provides the exact functionnalities i'm looking for, but it's a dialog, not a widget;
QDialog IS a QWidget, so QColorDialog IS a QWidget.


I didn't succeed in include it as a child widget in my app
Show us your code, and we will help you correct it.

totem
23rd January 2010, 00:40
QDialog IS a QWidget, so QColorDialog IS a QWidget.
Show us your code, and we will help you correct it.


Yeah sorry for my code, be sure i'll remember for next time

Back on topic : i just forgot to place it in a layout... it works just fine now.
Thanks you anyway for your interest