How to add an app shortcut to KDE panel?

I had a problem with this as well. The main problem was that if I made a ‘Link to Application’ on the desktop, it worked. If I then copied that link to a panel they both worked. But if I then deleted the original link, the panel copy wouldn’t work. The only solution I found (with help) was to use menu editor and add the application to the KDE menu which would then allow me to drag it onto the panel.