Results 1 to 2 of 2

Thread: Display Label Color by selecting Color Picker

  1. #1
    Join Date
    Jul 2009
    Posts
    36
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Display Label Color by selecting Color Picker

    Hi all,

    I am using Qt 4.5.2 (32 Bit).

    In the Color Picker example it display the color in square box but how can it possible that instead of square box we use label and display color on the label text.


    colorView = new ColorViewer(this);

    colorView->setColor(colorTriangle->color());

    connect(colorTriangle, SIGNAL(colorChanged(QColor)), colorView, SLOT(changeColor(QColor)));

    layout = new QGridLayout;

    layout->addWidget( colorView, 0, 2, 2, 1);

    This is for display color can anyone tell me about Label Text color change.

  2. #2
    Join Date
    Jul 2009
    Posts
    36
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Display Label Color by selecting Color Picker

    Can anyone send me the code of similar like Color picker.

Similar Threads

  1. Replies: 1
    Last Post: 23rd May 2009, 09:04
  2. display number on label
    By aj2903 in forum Qt Programming
    Replies: 4
    Last Post: 12th March 2009, 07:24
  3. how to display micro(mu) symbol in label
    By babu198649 in forum Newbie
    Replies: 2
    Last Post: 7th March 2008, 10:59
  4. Display a Label on top of a QGlWidget
    By Lele in forum Qt Programming
    Replies: 3
    Last Post: 4th February 2008, 16:11

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.