[Kde-perl] small issue...
Ashley Winters
jahqueel at yahoo.com
Mon Nov 22 21:28:41 CET 2004
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." <greeneg at arklinux.org> 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 : 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/
>
> ATTACHMENT part 1.1.2 application/x-perl name=aftwizard.pl
> ATTACHMENT part 1.2 application/pgp-signature
> _______________________________________________
> Kde-perl mailing list
> Kde-perl at kde.org
> https://mail.kde.org/mailman/listinfo/kde-perl
>
__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com
More information about the Kde-perl
mailing list