[PyQt] QTreeWidget Problem

2008-11-02 Thread Min Li
Hi everyone. I want to store the selected item in the QTreeWidget into a local variable. I use the to do this task. However, it returns the following sentences. ' ' Is there anyone can help me? Thank you very much! ___ PyQt mailing listPyQt@

[PyQt] Trouble with QTreeWidget

2008-11-02 Thread Min Li
Hi, everyone.I have some trouble to use the signals to trigger events QTreeWidget. The detailed situation is that: I want trigger a event by click the left button on the items in treeWidget. I try to use to do this, the activedFunction doesn't work. Now, I use < self.connect(self.treeWidget

[PyQt] triggler a event in QTextEdit

2008-10-29 Thread Min Li
Hi, everyone. I'm new in PYQT. Currently, I want to triggler a event for QtextEdit, that is moving a cursor on a word and click the mouse on that word to triggler some event in QTextEdit, like open a new link in a browser. Could you please suggest some idea for this task? Thank you very much Lee

[PyQt] problem with QTabBar

2008-10-13 Thread Min Li
Hi, everyone. I have some trouble in QTabBar. How can I trigger some event when I change the current tab to a new tab? Could you please give me some suggestion? Thanks Lee ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomput

[PyQt] QcheckBox

2008-10-10 Thread Min Li
Hi, everyone. Sorry to bother your guys. I'm a Novice in PyQt. Currently, I want to set the 'clicked' status as the default status for QcheckBox. I have tried some ways, such as setCheckState(). However, they're not working. I think I use it in a wrong way. Could you pleasae give me some advi

[PyQt] Troubles in return html text from QtextEdit

2008-10-10 Thread Min Li
Hi, everyone. I have some problem in store html text in a variable. This html text is displayed in the QtextEdit. I try to use variable = str( QtextEdit.toHtml() ) to retrieve these html text. However,Python Shell shows: Traceback (most recent call last): variable= str(self.toHtml()) UnicodeEnc

[PyQt] Problem with customize the context menu

2008-09-18 Thread Min Li
Hi, I'm new to PyQt(4) and python. I want to reimplement the contextMenuEvent and customize the context menu in the QTextEdit. Could you please give me some suggestions? Thanks a lot Lee ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riv

[PyQt] PYQT Problem in mouse event

2008-09-18 Thread Min Li
Hi, everyone I'm doing a project with PYQT now. However, I'm not clear about how to use the 'QTextEdit.mouseDoubleClickEvent'. I mean when I double click my mouse on the QTextEdit, something was happened. How can I write the code for that? Is there anyone can give me some suggestions? T

[PyQt] Troubles with PYQT.

2008-09-17 Thread Min Li
Hi everyone. I have some trouble to retrieval the selected text in the QTextEdit. I mean I want use mouse to select the text in the QTextEdit, and retrieval it in a local variable. Is there any on can help me? Thanks a lot. ___ PyQt mailing listPyQt