[PyKDE] defaulf font for font dialog

ratha sethchanratha at khmeros.info
Wed Sep 13 08:19:14 BST 2006


Hi,

I  set a specific font to QTextEdit by coding:

font = QGui.QFontDialog.getFont(QGui.QFont("KhmerOS", 12));
self.ui.txtTarge.setFont(font[0])

The selected font is set to txtTarget correctly; for example, I chose "KhmerOS 
Metal Chrieng".
When I open the font dialog again, the selected font should be set to the 
"KhmerOS Metal Chrieng", in contrast, it selected another font.
Does any body know how to set the default font to the font we just selected?

Thanks,
ratha






More information about the PyQt mailing list