[PyQt] Pickup state of a QCheckBox in QTableWidget

2011-07-14 Thread starglider develop
Hi, I have a QTableWidget and in one column it as QCheckBox. May problem is tha I want to pick the action of the user when he/she changes the state of the checkBox. Tryed self.connect(self.mygrid, SIGNAL(cellChanged(int,int)), self.cellUpdate) and self.connect(self.mygrid,

[PyQt] Capture drop in a QTableWidget

2011-01-27 Thread starglider develop
Hi, I'm new to PyQt and I have a problem, search de google, PyQt docs, Mr. Summerfield's book, but was unable to find a way of sort it. I have a QListWidget and a QTableWidget all have the drag and drop enable, I use this example: http://zetcode.com/tutorials/pyqt4/dragdrop/ it works fine

Re: [PyQt] How to destroy SIGNAL

2010-11-16 Thread starglider develop
: On Mon, 15 Nov 2010 21:20:35 + starglider develop starglider@gmail.com wrote: Hi, I have a QWidgetGrid that need to response to a double click signal, but sometimes it as the double grid signal disconnected to allow the user to directly edit the cells, and a itemChanged signal

[PyQt] How to destroy SIGNAL

2010-11-15 Thread starglider develop
Hi, I have a QWidgetGrid that need to response to a double click signal, but sometimes it as the double grid signal disconnected to allow the user to directly edit the cells, and a itemChanged signal was implemented, my problem is that I can't delete/destroy de signals according to my needs. Any

[PyQt] List widgets in a widget

2010-09-06 Thread starglider develop
Hi, I have a TabWidget dinamicly populated with widgtes(QLabel and QLineEdit), and I need to know all the widgets by name in a way I can get their values. This is for a database application, and I want to get the name of the widgets that are the name of the fields in the database. the widget if

Re: [PyQt] Clear/delete widget in a Layout

2010-08-18 Thread starglider develop
Hi, thank you all of you for your help, I solve my problem with Matteo code. Regards, On 9 August 2010 10:00, Matteo Bertozzi th...@develer.com wrote: On Sun, 2010-08-08 at 23:59 +0100, starglider develop wrote: Hi, I have a layout and need to remove all the widgets in the layout

[PyQt] Clear/delete widget in a Layout

2010-08-08 Thread starglider develop
Hi, I have a layout and need to remove all the widgets in the layout to populate with other widget, but didn't find a way of doing that. Any ideas. Thanks in advance. ___ PyQt mailing listPyQt@riverbankcomputing.com

[PyQt] Get Signals from all buttons in the form

2010-07-19 Thread starglider develop
Hi, I have a form with 12 QPushButtons and need to connect the signals to the corresponding button pressed without have to use the usual self.connect(obj,SIGNAL(),self.function), because I don't khow many buttons where made. Yes I'm a newbe. Thank you in advance.

Re: [PyQt] Delete a Laytou

2010-03-19 Thread starglider develop
a short example.. On Thu, Mar 18, 2010 at 11:39 PM, starglider develop starglider@gmail.com wrote: Hi, I have a QMainWindow with a main Vertical Layout and 3 HLayouts and several Widgets in every layout, but the program needs to remove all the layouts to create another one

[PyQt] Delete a Laytou

2010-03-18 Thread starglider develop
Hi, I have a QMainWindow with a main Vertical Layout and 3 HLayouts and several Widgets in every layout, but the program needs to remove all the layouts to create another one with a widget. How can I remove the original layouts? I was unable to find an answer in the internet. Thank you in

Re: [PyQt] Get a list of selected rows in a QTableWidget

2010-03-05 Thread starglider develop
Thank you Andreas for your suggestion. On 5 March 2010 07:22, Andreas Pakulat ap...@gmx.de wrote: On 04.03.10 17:52:01, Russell Valentine wrote: rows=[] for idx in self.table.selectedIndexes() rows.append(idx.row()) Better would be using

Re: [PyQt] Limit the height of a Layout

2010-03-03 Thread starglider develop
probably look at that. -- Regards, -Demetrius Cassidy starglider develop starglider@gmail.com wrote: = Hello, I'm a newby and I have a question: how can I limit the height of a QHBoxLayout? e.g.: There is a central widget with a QHBoxLayout that as two QTableWidget

[PyQt] Limit the height of a Layout

2010-03-02 Thread starglider develop
Hello, I'm a newby and I have a question: how can I limit the height of a QHBoxLayout? e.g.: There is a central widget with a QHBoxLayout that as two QTableWidget and I want to limit the size of the first QTableWidget to 300 points, but let the second QTableWidget grow until the limit of the