[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] setTextFormat missing in QTextEdit
From:       Mark Summerfield <mark () qtrac ! eu>
Date:       2007-05-24 16:55:46
Message-ID: 200705241755.46277.mark () qtrac ! eu
[Download RAW message or body]

On Thu 24-May-07, Mike Tammerman wrote:
> Hi,
>
> setTextFormat and textFormat are missing QTextEdit. They are also not
> existant in the PyQt4 class reference.
>
> I am using Qt 4.2.3 and PyQt 4.2
>
> Mike

I believe those methods are Qt 3-specific. In C++/Qt they are still
available, but to quote the documentation "They are provided to help you
port old code to Qt 4. We advise against using them in new code."

Qt 4 usage is to set text using setPlainText() and insertPlainText(), or
setHtml() and insertHtml(), and to retrieve using toPlainText() or
toHtml(). You can also call acceptRichText(bool) to control whether the
user can insert HTML, e.g., by pasting HTML from elsewhere.

-- 
Mark Summerfield, Qtrac Ltd., www.qtrac.eu

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic