Re: Perl QT: Problem using a custom Qt::Validator with a Qt:LineEdit

Stephan Bosch <[email protected]> Sat, 18 Feb 2006 08:04:07 +0100
Newsgroups gmane.comp.kde.devel.perl
Message-ID <[email protected]>
Hello,

Ashley Winters schreef:
> It might be a bug. Try this:
> 
> sub validate {
>    my($string, $pos) = @_;
>    print "Validate!\n";
> 
>    return this->Acceptable;
> }
Unfortunately this produces exactly the same result :/

Regards,

Stephan

PS: Ashley, sorry about the spurious reply. I pushed the wrong button. :)

> --- Stephan Bosch <[email protected]> wrote:
> 
>> Hello,
>>
>> I am currently using PerlQt-3.008 (using Qt-3.3.3) for a simple
>> design. 
>> I am trying to build a custom Validator for a special LineEdit I
>> need. I 
>> have subclassed the Qt::Validator class with a very much empty 
>> validate() method (it simply returns Qt::Validator::Acceptable). 
>> However, when I have assigned an instance of the new Validator class
>> to 
>> my LineEdit, the program crashes with a segfault as soon as the text
>> in 
>> the LineEdit is edited.
>>