[Gambas-user] qt4 and form.controls

Benoît Minisini gambas at ...1...
Thu Sep 17 17:18:44 CEST 2009


> Noticed same thing. Although "Me.Children" works.
> Me.Controls.Count is not zero, but enumeration doesn't happen at all.
> With Qt3 all works as expected.
> 
> @Ubuntu 9.04 64bit
> 
> Jussi
> 
> On Thu, Sep 17, 2009 at 15:37, nero <tmp2009 at ...2180...> wrote:
> > hi ,
> >
> > I'm trying some of my code on gambas3 to be ready when it's done.
> >
> > I've some problem with form controls using qt4 , i've a form with n
> > controls and want to enumerate them .
> >
> > I'm using somethink like:
> >
> > ------------------------------------------------
> > Public Sub Button1_Click()
> > Dim ch As Object
> >
> >  For Each ch In Me.Controls
> >    ta.Insert(ch.name & "\n")
> >  Next
> >
> > End
> >
> > (note: ta is a textarea)
> >
> > ------------------------------------------------
> >
> > using qt3 i see all controls , but with qt4 i get nothink and also no
> > error.
> >
> > I'm using svn 2336.
> >
> > thanks,
> > marco.
> >
> >
> >
> > --
> > Se mi etichetti, mi annulli.
> >                -- Kirkegaard
> >

OK, it should be fixed in the next commit.

Regards,


-- 
Benoît Minisini




More information about the User mailing list