[PyKDE] QStyleSheetItem.setAnchor()
Rune Hansen
rune.hansen at scanmine.com
Tue Mar 9 15:50:01 GMT 2004
Hi, I acually feel bad asking this question here, but as the only
python "friendly" Qt mailing list I know of...well
I don't understand how QStyleSheetItem.setAnchor() is suposed to work.
"""
<xml version 1.0>
<OBJECT_SITE>http://somewhere.com<OBJECT_SITE>
..
"""
I'm displaying this XML in a QTextBrowser
I've assigned a default mimeSourceFactory to the TextBrowser and
connected a SIGNAL("anchorClicked(const QString&,const QString&)")
The magic _should_ happen when:
url = QStyleSheetItem(TextBrowser.styleSheet(),"OBJECT_SITE")
url.setAnchor(1)
...but, I'm obviously wrong. Can anyone help?
regards
/rune
More information about the PyQt
mailing list