I may be wrong but i think if you default your cell to a QlineEdit it always appear blank waiting for input. At least thats what happens to me if i use openPersistentEditor() along with QLineEdit on my previous example. I will post the link to my example as soon as get to work.
On Monday, February 17, 2014, Geoff Harvey <[email protected]> wrote: > This is actually kind of a follow-up to olheiros' question about item > delegates. > > I'm using a QTreeView to display a QAbstractItemModel with (for now) two > columns, the first of which is editable. > > I'd like to *always* display the first column as a QLineEdit, but I can't > figure out how to use a QStyledItemDelegate to do so. > > Any pointers? I haven't been able to abstract the correct methods from the > stuff I've found online; could be my google-fu is not very strong. > > Thanks a bunch, > > hoaf > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to > [email protected]<javascript:_e(%7B%7D,'cvml','python_inside_maya%[email protected]');> > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CAH5d3sDrj8XL%3Dm_ccMCdZU4m%3Dpk-YCcUaCF_dny8B%3Dxf4-J6TQ%40mail.gmail.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- Sent from Mobile -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAK%2Bp0%3DZ%3D-bBj6UL7dapAhVufKVXZM1FqeABk8zLs3382cY369w%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
