Results 1 to 2 of 2

Thread: QtColorPicker in Qt designer dialog

  1. #1
    Join Date
    Jan 2010
    Posts
    7
    Thanked 1 Time in 1 Post

    Default QtColorPicker in Qt designer dialog

    Is there any way to use a qtcolorpicker with a qt designer created dialog?

    There is no option to insert a qtcolorpicker widget, can you insert a regular button and override it at runtime with the custom widget?

  2. #2
    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: QtColorPicker in Qt designer dialog

    Quote Originally Posted by mgb View Post
    Is there any way to use a qtcolorpicker with a qt designer created dialog?
    Sure. There are even two ways of doint that.

    can you insert a regular button and override it at runtime with the custom widget?
    Yes, that's one of the ways. Insert a regular button, right click it and choose "Promote to" (or whatever the option there says), then input proper values for the destination class and confirm everything.

    The other way is to provide a Qt Designer plugin for QtColorPicker class which might be a good idea if you plan to use the widget often.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. undefined reference to QtColorPicker
    By jonks in forum Qt Programming
    Replies: 2
    Last Post: 26th December 2009, 21:43
  2. How to blur parent dialog when child dialog is displayed
    By abhilashajha in forum Qt Programming
    Replies: 4
    Last Post: 10th June 2009, 13:01
  3. TreeView used in Qt Designer New Form dialog?
    By Bitruder in forum Qt Programming
    Replies: 2
    Last Post: 6th May 2009, 21:40
  4. qt designer 4.4.1 dialog properties
    By jjbabu in forum Qt Tools
    Replies: 1
    Last Post: 1st October 2008, 09:55
  5. Replies: 1
    Last Post: 22nd January 2007, 12:13

Tags for this Thread

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.