Results 1 to 3 of 3

Thread: Embed QColorDialog as a widget

  1. #1
    Join Date
    Dec 2009
    Posts
    128
    Thanks
    7
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Embed QColorDialog as a widget

    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..

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

    Default Re: Embed QColorDialog as a widget

    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.
    ==========================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
    Join Date
    Dec 2009
    Posts
    128
    Thanks
    7
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Embed QColorDialog as a widget

    Quote Originally Posted by high_flyer View Post
    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

Similar Threads

  1. Replies: 22
    Last Post: 14th October 2010, 17:44
  2. How do you embed a widget in a graphics item?
    By technoViking in forum Qt Programming
    Replies: 4
    Last Post: 10th November 2009, 06:09
  3. How to embed coin widget inside qt window?
    By jwieland in forum Qt Programming
    Replies: 2
    Last Post: 24th February 2009, 15:50
  4. Using <QColorDialog>
    By Gily in forum Newbie
    Replies: 5
    Last Post: 26th December 2007, 20:26
  5. Replies: 1
    Last Post: 14th June 2006, 14:36

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.