weird error....

Gary Greene <[email protected]>
Newsgroups gmane.comp.kde.devel.perl
Organization Ark Open Source Labs
Message-ID <[email protected]>
-----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@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 : [email protected]
============================================================
 
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-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.