[PyKDE] How to pass the QMemArray<type> object??

Jacob Abraham jakieabraham at yahoo.com
Thu Feb 26 10:53:01 GMT 2004


Dear Tutors,
   I would like to use this funtion in pyqt and came
across the following problems.
void QTable::removeRows ( const QMemArray<int> & rows
)

1. 
from qt import QMemArray
ImportError: cannot import name QMemArray
2.
mylist=[5]
self.mytable.removeRows(mylist)

QGArray::at: Absolute index 0 out of range
Segmentation fault

"""
#http://www.riverbankcomputing.co.uk/pyqt/docs/PyQt.html#AEN668
QMemArray<type> (Qt v3+)

Types based on the QMemArray template are
automatically converted to and from Python lists of
the type.
"""
    How do I pass the QMemArray Object to the
removeRows funtion?


  Thanks,
  Jacob Abraham  

__________________________________
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools




More information about the PyQt mailing list