PerlQt question

A

Amir Kadic

First off, I apologize if this isn't the best group for my
question...

I can't seem to make a proper Qt::Thread subclass.

Here is my attempt (which ends with:

Can't locate package Qt::Thread for @WannaBeAThread::ISA at
/usr/local/lib/perl/5.6.1/Qt/isa.pm line 45.
Segmentation fault

)

------------------------------------

package WannaBeAThread;

use strict;
use Qt;
use Qt::isa qw(Qt::Thread);

sub NEW {
shift->SUPER::NEW();
}

sub run {
1 for (0..4);
}

1;

package main;

use strict;
use WannaBeAThread;

my $ttt= WannaBeAThread;
$ttt->start();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,141
Messages
2,570,814
Members
47,360
Latest member
kathdev

Latest Threads

Top