[PyQt] embedding iconic pushButton in TableView and/or TreeView
James Polk
jpolk5001 at yahoo.com
Tue Nov 16 18:21:08 GMT 2010
Hello,
I'm trying to figure out how embed a pushButton (with iconic image
preferrably) in the first column of a TableView (or TreeView in
QSortFilterProxyModel). This is something that is pretty easy to do
in MEL (Maya's command language) but apparently seems pretty
tricky to do in PyQt. I've searched high and low and can't find any
examples of, or posts discussing, using such a technique. Is this
possible? and if so, I would greatly appreciate any light someone
could shed on this...
Simply put,...in a table- or treeView..
1 2 3 etc
1 iconButton1 text text
2 iconButton2 text text
3 iconButton3 text text
etc
...where each iconButton is unique and associated with its
accompanying data. Each row represents a unique record,
so icon1 (when clicked) initiates an action using data from record1,
and so on,etc. Essentially, the image in each icon is a picture
representation of the data in each associated record.
Any help or info is most greatly appreciated,
Cheers,
Coleslaw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20101116/a6f94df1/attachment.html>
More information about the PyQt
mailing list