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

List:       pykde
Subject:    Re: [PyQt] =?utf-8?q?How_specify_a_null_QFlags_item=3F?=
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2011-09-22 20:58:34
Message-ID: 4fbbb3dc594fe6fcb9bf2a8530737810 () localhost
[Download RAW message or body]

On Thu, 22 Sep 2011 13:42:33 -0700, David Cortesi <davecortesi@gmail.com>
wrote:
> To a function I want to pass a parameter to be used with
> QTextDocument.find, either QTextDocument.FindCaseSensitively
> or zero.
> 
> When I literally pass QTextDocument.FindCaseSensitively
> the function receives an object of type PyQt4.QtGui FindFlags.
> When I pass zero, it gets, no surprise, an int 0.
> 
> I would like to pass a flag value of 0 and have it come in as the
> same type, but I can't find any appropriate class name to use.
> The class QFlags is mentioned frequently in the QtAssistant writeups
> but QFlags is not listed at riverbank's PyQt4 class reference.
> 
> (Well, actually, QFlags does appear under e.g. the QDateTimeEdit class
> writeup but clicking it gets a 404 error.)
> 
> How can I create a null FindFlag value?

QTextDocument.FindFlags()

Phil
_______________________________________________
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