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

List:       pykde
Subject:    Re: [PyKDE] QStringList
From:       Phil Thompson <phil () river-bank ! demon ! co ! uk>
Date:       2000-04-03 14:19:35
[Download RAW message or body]

Pete Ware wrote:
> 
> PyQt-0.11.
> 
> I wanted to use qt.QTextBrowser and setup a Mime source using
> 
>         qt.QMimeSourceFactory.defaultFactory().setFilePath ('some path')
> 
> Unfortunately, setFilePath() expects a QStringList (I expected a list
> of strings).  Unfortunately, PyQt's QStringList doesn't have anyway of
> adding more than the initial string specified in the constructor
> (i.e. it needs to add the QValueList append() method).

I didn't implement append() (and prepend()) because they return an
iterator.  However, return values are easy enough to ignore.  Try
adding...

	void append(const QString &)
	void prepend(const QString &)

...to qstringlist.sip and re-generate the code.

Phil


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

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