Results 1 to 12 of 12

Thread: Setting text color on QLabel

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    12
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Setting text color on QLabel

    Qt 4.0.1: What methods can I use for setting the text color on a QLabel item? I can easily change the font, font size, the text itself and the alignment of the label but not the text colour.

    Edit:
    Ok, I managed to change the colour of the label by creating a new palette for it, but I want to change the colour of the text only, not whole labels.
    Last edited by Yorma; 13th January 2006 at 11:42.

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 09:49
  2. Replies: 2
    Last Post: 23rd July 2012, 08:42
  3. Replies: 0
    Last Post: 2nd September 2008, 12:01
  4. Position of text in a qlabel
    By jiveaxe in forum Qt Programming
    Replies: 1
    Last Post: 25th May 2008, 13:26
  5. QTreeWidgetItem setting color for the text
    By arjunasd in forum Qt Programming
    Replies: 1
    Last Post: 29th August 2007, 17:22

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.