[PyQt] Help with model/view implementation

NARCISO, Rui RUI.NARCISO at airbus.com
Thu Mar 5 15:59:12 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.




More information about the PyQt mailing list