Call Slot of different class

Posted by sijith on Stack Overflow See other posts from Stack Overflow or by sijith
Published on 2010-04-21T11:29:44Z Indexed on 2010/04/21 11:33 UTC
Read the original article Hit count: 310

Filed under:
|
|

Hi,

I want to execute the slot of different class. When i execute this code its compiling without any error but not getting Output

pendrive1::pendrive1()
{
    UI_CDBurn Obj; 
connect( Obj.penDrive, SIGNAL(clicked()),&Obj , SLOT(caller()));
}

Here my slot is not working. Slot in UI_CDBurn is public. But when i called with a button in pendrive1 class its working fine

connect( ui.pushButton, SIGNAL(clicked()),Obj , SLOT( caller())); // Working File

© Stack Overflow or respective owner

Related posts about qt

Related posts about qt4