Re: small issue...

Ashley Winters <[email protected]> Mon, 22 Nov 2004 12:28:41 -0800 (PST)
Newsgroups gmane.comp.kde.devel.perl
Message-ID <[email protected]>
Yes, you can store widgets in instance variables. PerlQt calls them
attribtes. See the tutorial/example programs included with the PerlQt
source for some good examples how to use it. In brief, here's how:

use Qt::attributes qw(mainWidgetStack);

#...

sub midFrame {
    # no $ before attributes. Instance variables have no sigil
    mainWidgetStack = Qt::WidgetStack( this, 0 );
    my $introPage = Qt::Widget( mainWidgetStack, 0 );
    # .....
}

--- "Gary L. Greene Jr." <[email protected]> wrote:

> 
> I'm currently developing a first boot wizard for Ark Linux. I've run
> into a 
> small problem with my applications design though. I've made the top,
> middle 
> and bottom of the application window a separate sub. Unfortunately, I
> need to 
> be able to access the widgetstack in the sub midFrame and Perl keeps
> saying 
> that I cannot access it. is there a way to allow the other sub calls
> to 
> access widgets created inside the other calls? Attached is the source
> to the 
> app thus far. Thanks. 
> 
> -- 
> Gary L. Greene, Jr.
> Sent from uriel
>  01:24:40 up 6 days,  8:25,  8 users,  load average: 0.12, 0.05, 0.01
>  
> ============================================================
> 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/
> 

> ATTACHMENT part 1.1.2 application/x-perl name=aftwizard.pl


> ATTACHMENT part 1.2 application/pgp-signature 
> _______________________________________________
> Kde-perl mailing list
> [email protected]
> https://mail.kde.org/mailman/listinfo/kde-perl
> 



		
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com