[PyQt] Help with model/view implementation

NARCISO, Rui RUI.NARCISO at airbus.com
Thu Mar 5 16:01:54 GMT 2009




Hi all,

I am trying to write a small program to list a series of hard drives (Unix) and when that is working progressively increase the information show for each of the drives...

The problem is that I'm having a real hard time implementing the model/view/item classes to do so. Currently, when I add an item to the tree, the small "plus" sign appears eventhough there's no childs and when I click on it, the same item is repeated over and over again...

A second problem will be when I'll want to add information to each of the drives, how to, for example, show a small bar with a percentage for each  one...

In attchment I send all of the files I'm currently using.

Thank you in advance if someone can either give me a hadn or give me some code to start with...

Rui

The code I'm using is a python conversion of the C++ example on the Qt4 doc ...

The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other then the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.


_______________________________________________
PyQt mailing list    PyQt at riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

This mail has originated outside your organization, either from an external partner or the Global Internet.
Keep this in mind if you answer this message.



The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other then the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TreeItem.py
Type: application/octet-stream
Size: 841 bytes
Desc: TreeItem.py
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090305/7fbf1843/TreeItem.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MainWindow.py
Type: application/octet-stream
Size: 3129 bytes
Desc: MainWindow.py
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090305/7fbf1843/MainWindow.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TableModel.py
Type: application/octet-stream
Size: 183 bytes
Desc: TableModel.py
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090305/7fbf1843/TableModel.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diskinfo.py
Type: application/octet-stream
Size: 849 bytes
Desc: diskinfo.py
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090305/7fbf1843/diskinfo.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TreeModel.py
Type: application/octet-stream
Size: 2311 bytes
Desc: TreeModel.py
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090305/7fbf1843/TreeModel.obj


More information about the PyQt mailing list