[Kde-perl] weird error....

Gary Greene greeneg at arklinux.org
Wed Aug 18 05:53:45 CEST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


While working on aftwizard, the Ark Linux First-boot Wizard in PerlQt, I ran 
into a very odd little glitch when trying to attach a SpacerItem to a 
HBoxLayout:
greeneg at uriel aftwizard]$ perl aftwizard.pl
- --- No method to call for :
        QHBoxLayout::addWidget(QSpacerItem)
at aftwizard.pl line 49.

The relevant perl code is lines 35-53 and follow:

sub btmFrame {
    my $bFrame = Qt::Frame( this, 0, 0 );
    $bFrame->setPaletteBackgroundColor( &Color( 97, 148, 216 ) );
    $bFrame->setPaletteForegroundColor( &Color( 255, 255, 255 ) );

    my $bLayMan = Qt::HBoxLayout( $bFrame, 5, 5, 0 );

    my $backBttn = Qt::PushButton( $bFrame, 0 );
    my $b_Spacer = Qt::SpacerItem( $bFrame->x(), 0, &Qt::SizePolicy::Minimum, 
&Qt::SizePolicy::Expanding );
    my $helpBttn = Qt::PushButton( $bFrame, 0 );
    my $exitBttn = Qt::PushButton( $bFrame, 0 );
    my $nextBttn = Qt::PushButton( $bFrame, 0 );

    $bLayMan->addWidget( $backBttn );
    $bLayMan->addWidget( $b_Spacer );
    $bLayMan->addWidget( $helpBttn );
    $bLayMan->addWidget( $exitBttn );
    $bLayMan->addWidget( $nextBttn );
}

Is there anyone that knows why this is bombing out?

- -- 
Gary L. Greene, Jr.
Sent from uriel.tolharadyne.net
 23:47:37 up 2 days,  6:02,  6 users,  load average: 0.05, 0.09, 0.11
 
============================================================
Developer for the Ark Linux Project
 check out http://www.arklinux.org/ for more info.
 Also http://www.csis.gvsu.edu/~greeneg/
EMAIL : greeneg at arklinux.com
============================================================
 
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
for more information.
Consider using a free MS-Office replacement for most platforms,
http://www.openoffice.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBItLQynMfbISpaCwRAsv7AKCncGHoinhAPfYfJx7VMuviIRPVZwCfexLH
teH1QPdBh7aWKYplt+F7Zi0=
=Hu+h
-----END PGP SIGNATURE-----


More information about the Kde-perl mailing list