[PyQt] QTableModel (custom) with QComboBox in a cell... (take 2)

Kerri Reno kreno at yumaed.org
Wed Mar 19 13:33:29 GMT 2008


Dirk,

I think Delegates are the way to go, but I haven't tackled this
particular problem yet.  I'm hoping someone else can help you.

Good Luck!
Kerri

On 3/19/08, Dirk Wagener <dwagen at stonethree.com> wrote:
>
> Hi
> I sent this before, but got no replies.
> Here we go again:
>
> I am implementing a custom model for a table view. I have an editable cell
> in which
> the user can enter a value. What I want to do is to make the cell a
> QComboBox so that
> the user can enter a text value for the cell OR select some value from a
> drop-down list.
> I am not using delegates currently.
> What is the correct (easiest) way to achieve this?
>
> Kind regards
> Dirk
>
> --
> Dirk Wagener <dwagen at stonethree.com>
> (MSc. Electronic Engineering, Stell.)
>
> Project Engineer
> Stone Three Venture Technology (Pty.) Ltd.
> http://www.stonethree.com
> +27 21 851 3123 (phone)
> +27 21 851 3127 (fax)
>
> The real trick in life is to want nothing, and to
> succeed in getting it. Shantaram
>
>
> --
> Dirk Wagener <dwagen at stonethree.com>
> (MSc. Electronic Engineering, Stell.)
>
> Project Engineer
> Stone Three Venture Technology (Pty.) Ltd.
> http://www.stonethree.com
> +27 21 851 3123 (phone)
> +27 21 851 3127 (fax)
>
> The real trick in life is to want nothing, and to
> succeed in getting it. Shantaram
>
> _______________________________________________
>  PyQt mailing list    PyQt at riverbankcomputing.com
>  http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>


-- 
Yuma Educational Computer Consortium
Compass Development Team
Kerri Reno
kreno at yumaed.org      (928) 502-4240
.·:*¨¨*:·.   .·:*¨¨*:·.   .·:*¨¨*:·.



More information about the PyQt mailing list