[Qgis-developer] custom attribute inserting/editing

Martin Dobias wonder.sk at gmail.com
Fri Feb 15 13:32:33 EST 2008


On Fri, Feb 15, 2008 at 3:09 PM, Alessandro Pasotti <apasotti at gmail.com> wrote:
> 2008/2/15, Martin Dobias <wonder.sk at gmail.com>:
>
> > On Wed, Feb 13, 2008 at 3:24 PM, Bud P. Bruegger <bud at comune.grosseto.it> wrote:
>  >  >  I am looking into the possibility of custom attribute editing, i.e.,
>  > >
>
> >  >  So my questions are:
>  >  >  * is this feasible?
>  >
>  >
>  > Yes, I think so. If I understand correctly what you want is to show a
>  >  dialog for a feature which will show the fields with according
>  >  (customized) editing widgets.
>  >  With Qt there's no problem to create dialogs on the fly, for example
>  >  in GRASS plugin QGIS shows forms for GRASS modules in such way - the
>  >  definition of the form is always stored in an XML file which is read
>  >  and the form is created accordingly.
>  >
>  >
>  >  >  * is this something a python programmer without GUI experience can do
>  >  >  (i.e., I)?
>  >
>
>
>  Hi, if I understand correctly, you are saying that it is possible
>  right now to substitute the default attribute editing window (that
>  contains a simple table) whit a custom one written in pyQT, if yes,
>  how?
>
>  Typical use case 1: a user inserts a new postgis feature and a causotm
>  editing form is displayed instead of the default one
>  use case 2: using the identify tool on a postgis layer feature, to
>  display a custom form into which the user can view/edit the
>  attributes.

No, you can't substitute it with default attribute editing window,
however you can (relatively easily) create your own map tool which
will open your custom dialog.

Btw. I'll be offline for about a week from now, so don't feel offended
if I'm not responding :-)

Martin


More information about the Qgis-developer mailing list