I'm so confused... I know this must be simple.. help.
I have a TCBui.pm file generated by Qt designer.
I want to access the methods of a Qt Table (change the cell contents
using SetText()) in another TCB.pm file.
So, in the first file TCBui.pm has
use Qt::attributes qw(
tabWidget2
tab
table1
tab_2
table2
menubar
etc. etc. )
I've tried everything I can think to get to 'table1' in the second .pm file
so I can do table1->SetText($row, $col, "some text");
I thought something like the following should work:
use TCBui;
use Qt::isa qw(TCBui);
use Qt::attributes qw(table1);
But I keep getting
Can't call method "setText" on an undefined value at TCB.pm line 73.
Please someone give me the magic so that TCB.pm can know about table1.
Thanks for listening,
Allen
|