Re: [PyQt] QFileDialog::getOpenFileName warning

2011-11-08 Thread Jian Ma
. -- *From:* Jian Ma jianm...@gmail.com *To:* Tayfun Kayhan tayfun92_kay...@yahoo.com *Sent:* Tuesday, November 8, 2011 6:28 PM *Subject:* Re: [PyQt] QFileDialog::getOpenFileName warning Hi Tayfun, Thank you for your reply. I guess you need to send(or CC) to pyqt

[PyQt] QFileDialog::getOpenFileName warning

2011-11-07 Thread Jian Ma
Hi, I wrote a program which uses QFileDialog to open file. The code is: *dir = . fname = str(QFileDialog.getOpenFileName(self, Gui - Choose File, dir))* When I run the program, there is warning message: *KGlobale::Locale::Warning your global KLocal is being recreated with a valid main

[PyQt] QSqlTableModel edit problem

2011-09-19 Thread Jian Ma
Hi, I tried to add/edit records using QSqlTableModel and QTableView. The QSqlTableModel is initialized as: self.model = QSqlTableModel(self), self.model.setTable(table), where table is a database, self.model.setHeaderData(ID, ).; the QTableView is initialized as self.view =

[PyQt] what is the difference between QMenu() and QMenu(self)

2011-07-29 Thread Jian Ma
Hi all, I created a QMenu object in a class. When I created it with menu = QMenu(self) and run the program, it sometimes got the segmentation fault after exit the program. When I created the object with menu = QMenu(), it didn't get this problem. I guess the reason is about the QMenu object

Re: [PyQt] what is the difference between QMenu() and QMenu(self)

2011-07-29 Thread Jian Ma
...@gmail.com wrote: On Friday, July 29, 2011 04:20:27 PM Algis Kabaila wrote: On Sat, 30 Jul 2011 08:18:58 AM Jian Ma wrote: Hi all, I created a QMenu object in a class. When I created it with menu = QMenu(self) and run the program, it sometimes got the segmentation fault after exit