[PyQt] How do I change a mixed font format?

2012-02-20 Thread bluekyu
Hello. I have a problem about QTextEdit. Setting font functions of QTextEdit do not work as those of word processor. I want to change mixed font formats consistently. For example, selected text is """style="font-style:italic;">Text1Text2.""" I want to apply "underline" to the text, so I can use

[PyQt] How can I use resource file created by designer

2012-02-16 Thread bluekyu
Hello. I use python3 and PyQt 4.8. I have a problem about module import. I created resource file using designer and then converted .ui to python module using pyuic4. I knew that ui module have "import rc_xxx", so I also converted .qrc to rc_xxx.py using pyrcc4 -py3. But my program use my pyth

[PyQt] What is difference between "partial" and "lambda" in connect slot?

2011-08-28 Thread bluekyu
Hello. I have a question about "partial" and "lambda" in connect slot. I learned that "partial" and "lambda" can have arguments in connect slot. So, I usually use lambda function, however, it does not work well in some code. My example code: from Py

[PyQt] How do I work StatusTip of QMenu?

2011-07-22 Thread bluekyu
Hello! I have a question. I want to add statusbar tip of menu not a action in menu. So, I just set a statustip to QMenu returned by "self.menuBar().addMenu(...)" I thought it should work because QMenu inherits QWidget has 'setStatusTip' method. But, it does not work, instead, some widgets (ex,

[PyQt] How is thousands separator displayed in QDoubleSpinBox?

2010-07-05 Thread bluekyu
Hello, I want to display thousands separator in QDoubleSpinBox. (For example, I may click upward button at 999 and it dispaly 1,000) I tried to find this in google and doc. But I don't know how to do this. Can I do this? My environment is python3.1, pyqt 4.7.3, kubuntu 10.04 and QWidget.locale().g