tags:

views:

23

answers:

0
printersetup=file.addAction(hme=new QIcon("../Desktop/images/kya/32x32/kaka.png"),"Printer Setup");
 printersetup.triggered.connect(new QObject(){
  public void setup()
  {
   setup1=new QPrintDialog(printer);
   setup1.accepted.connect(new QObject(){
    public void accept(QPrinter printer)
    { System.out.println("nana");
     browser.print(printer);
    }
   },"accept(QPrinter)");
   setup1.exec();
  }       
 },"setup()");

Its giving an error : QtJambi : Exception pending in native code Exception in thread "main" com.trolltech.qt.QNoSuchSlotException:

If I move the code inside setup() to outside setup(), no such error is shown. Why ?