Results 1 to 2 of 2

Thread: Force redraw of QSimpleRichText when QStyleSheet changes

  1. #1
    Join Date
    Apr 2006
    Posts
    2
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Force redraw of QSimpleRichText when QStyleSheet changes

    Hi,

    working with Qt3 I implemented a simple text viewer widget derived from QScrollView using QSimpleRichText for rich text drawing. The text viewer supports some additional tags I use for different font/color styles. The extended QStyleSheet is set as QApplication's default style sheet and each QSimpleRichText gets this style sheet when instantiated, too.

    Regarding to font/color changes to the style sheet's extra tags I am wondering what the most efficient (if any) method of redrawing/updating the QScrollView's content is, so that these changes are reflected properly.

    Thanks in advance,

    Sebastian Hesselbarth

  2. #2
    Join Date
    Apr 2006
    Posts
    2
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: Force redraw of QSimpleRichText when QStyleSheet changes

    For all those who are interested in a solution:

    It looks like the QSimpleRichText is unable to react on stylesheet changes, so deleting and recreating the richtext objects seems to be the only "workaround".

Similar Threads

  1. QListView force redraw.
    By Dave Stewart in forum Qt Programming
    Replies: 4
    Last Post: 19th December 2007, 14:41
  2. nmake problems while building mysql driver
    By MarkoSan in forum Installation and Deployment
    Replies: 27
    Last Post: 25th May 2007, 12:57
  3. QT4 beginner Fatal Error
    By Remyfr in forum Installation and Deployment
    Replies: 3
    Last Post: 11th March 2006, 01:48

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.