[Kde-perl] setInputMask freeze up

Royce Souther Royce.Souther at SiliconTao.com
Wed Mar 22 17:58:28 CET 2006


I stripped it down to the most basic of a test file and now I am getting
an error that setInputMask is not a property of the lineEdit object.

Is this true? This member has been a part of Qt since as far back as I
can remember. How can I know what members are missing, what I can trust
and what I can use?

Is this problem fixed in a newer version of PerlQt? Do I need to
recompile PerlQt?

The error
Subroutine Qt::_internal::this redefined
at /usr/local/lib/perl/5.8.3/Qt.pm line 527.
Subroutine Qt::base::this redefined at /usr/local/lib/perl/5.8.3/Qt.pm
line 528.
Qt: Locales not supported on X server
Use of uninitialized value in subroutine entry
at /usr/local/lib/perl/5.8.3/Qt.pm line 236.
--- No method to call for :
        QLineEdit::setInputMask('*')
at /usr/local/lib/perl/5.8.3/Qt.pm line 8.
DESTROY created new reference to dead object ' Qt::LineEdit' during
global destruction.

The test program.

#!/usr/bin/perl -W

use strict;
use utf8;
package Form1;
use Qt;
use Qt::isa qw(Qt::Dialog);
use Qt::attributes qw(
    pushButton1
    lineEdit1
);

sub NEW
{
    shift->SUPER::NEW(@_[0..3]);

    resize(400,300);

	lineEdit1 = Qt::LineEdit(this, "lineEdit1");	
	lineEdit1->setGeometry(Qt::Rect(20, 20, 300, 20));
	lineEdit1->setInputMask("*");
																					
    pushButton1 = Qt::PushButton(this, "pushButton1");
    pushButton1->setGeometry(Qt::Rect(150, 170, 131, 31));
    pushButton1->setText("pushButton1");
}

1;

package Main;
use Qt;
my $App = Qt::Application(\@ARGV);
my $FormDialog = new Form1;
$App->setMainWidget($FormDialog);
$FormDialog->show;
exit $FormDialog->exec;



On Tue, 2006-03-21 at 17:13 -0700, Roy Souther wrote:

> PerlQt 3.006-1 statically linked.
> 
> When I call setInputMask the program seems to stop running. This is a
> property of QLineEdit. I have a print "hello\n"; on the very next line
> and it never happens.
> 
> Are there any known issues with this member function?
> 
> Royce Souther
> www.SiliconTao.com
> Let Open Source help your business move beyond.
> 
> For security this message is digitally authenticated by GnuPG.
> 
> 
> 
> 
> 
> _______________________________________________
> Kde-perl mailing list
> Kde-perl at kde.org
> https://mail.kde.org/mailman/listinfo/kde-perl


Royce Souther
www.SiliconTao.com
Let Open Source help your business move beyond.

For security this message is digitally authenticated by GnuPG.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-perl/attachments/20060322/8b436b56/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://mail.kde.org/pipermail/kde-perl/attachments/20060322/8b436b56/attachment.pgp 


More information about the Kde-perl mailing list