[PyKDE] QTextEdit.selectAll() bug? -- Precisions

Sundance sundance at ierne.eu.org
Fri Jun 6 21:22:01 BST 2003


I heard Sundance said:

> No matter what value I pass this method, 0 or otherwise, it always
> seems to use the default value of the method's argument, namely
> 'true', which selects everything. Not quite what I want it to do!

Okay, so I prodded at eric3's sources, and it does use selectAll(0) to 
deselect everything, and it -works-. Now I'm confused.

Could it be that the mode I use the QTextEdit widget in (LogText) screws 
this method up somehow?

*fiddle, fiddle*

Okay, so when I switch to RichText, selectAll(0) works, and unselects 
everything. Now I'm totally confused. Is this a Qt bug then? Is there a 
workaround?

NB: I'm using Qt 3.1.2, Python 2.2.2, PyQt 3.6. Sorry I forgot to 
mention it the first time.

-- S. the unlucky




More information about the PyQt mailing list