Results 1 to 2 of 2

Thread: Background manipulation of QPlainTextEdit

  1. #1
    Join Date
    May 2010
    Location
    Pretoria, South Africa
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Background manipulation of QPlainTextEdit

    Hi there everyone!

    I'm trying to change the background color of a QPlainTextEdit widget (both the background of the text and the remainder of the widget) to the standard window color.

    I've looked at SetBackgroundRole and setBackgroundVisible, but these only color the non-text portion of the widget.

    Any ideas on how to color the entire widget would be welcome!

    Thanks,
    Dirk

  2. #2
    Join Date
    Apr 2010
    Posts
    98
    Thanks
    19
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Background manipulation of QPlainTextEdit

    Try using stylesheet.
    It's not the goodbye that hurts,but the flashback that follow.

Similar Threads

  1. String manipulation methods?
    By PaladinKnight in forum Newbie
    Replies: 5
    Last Post: 16th March 2010, 23:44
  2. QPlainTextEdit and anchors
    By bear101 in forum Qt Programming
    Replies: 2
    Last Post: 13th December 2009, 18:10
  3. QPlainTextEdit
    By Carlsberg in forum Qt Programming
    Replies: 4
    Last Post: 13th June 2009, 06:12
  4. QPlainTextEdit and mouseMoveEvent()
    By Carlsberg in forum Qt Programming
    Replies: 1
    Last Post: 8th June 2009, 06:33
  5. QString manipulation - QRegExp
    By mattia in forum Newbie
    Replies: 1
    Last Post: 18th March 2008, 11:21

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.