what's the difference between the two declaration below
Qt Code:
connect(object1,SIGNAL(clicked()),SIGNAL(mySignal()));To copy to clipboard, switch view to plain text modewhich is preferred and why..Qt Code:
connect(object1,SIGNAL(clicked()),this,SLOT(mySlot())); void mySlot() { emit mySignal(); }To copy to clipboard, switch view to plain text mode
Bookmarks