QIconView woes....
Gary Greene <[email protected]> Sun, 21 Aug 2005 22:26:27 -0400
| Newsgroups | gmane.comp.kde.devel.perl |
|---|---|
| Organization | Shore Line Technologies |
| Message-ID | <[email protected]> |
I'm trying to get the selected QIconViewItem from a QIconView in a PerlQt app
I'm working on and I can't seem to connect the SIGNAL to SLOT for it. Here's
a snippet of code from the app:
our $driveView = Qt::IconView( $targetSetupGrp, "driveView" );
$driveView->setGeometry( &Rect( 10, 20, 1000, 185 ) );
$driveView->setFrameShape( &Qt::IconView::StyledPanel() );
$driveView->setFrameShadow( &Qt::IconView::Plain() );
for ( my $i = 0; $i < @ideHarddisks; $i++ ) {
my $temp = $ideHarddisks[ $i ];
chomp( $temp );
my $driveName = $temp;
$temp = substr( $temp, 6 );
my $roundedSize = sprintf( "%.2f", $driveInfo{ $temp } );
if ( ! $roundedSize lt 3 ) {
$drives[ $i ] = Qt::IconViewItem( $MainWidget::driveView,
&tr( "$driveName\n$roundedSize GB" ),
$drvIcon );
$MainWidget::driveView->connect( $MainWidget::driveView,
SIGNAL "clicked( $driveView->currentItem() )",
this,
SLOT "&driveSelected()" );
}
}
What gives? I can't see where I'm making a mistake..... :S Any help would be
GREATLY appreciated.
--
Gary L. Greene, Jr.
Sent from uriel.tolharadys.net
22:18:42 up 2 days, 15:09, 8 users, load average: 0.82, 0.74, 0.71
============================================================
Developer and Project Lead for PhoeNUX OS.
check out http://www.phoenuxos.com/ for more info.
EMAIL : [email protected]
============================================================
_______________________________________________
Kde-perl mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-perl
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBDCTfV+psNrGG9CbMRAmcyAJwLGcRv9mFOayjTS6uqOTqJoeRD6wCfWNr4 QX7RZ8UXp7iH5E8CqKu0IBQ= =fnwj -----END PGP SIGNATURE-----