In the KDE Systems settings page for the Input devices and specifically for the mouse, there would be an option to configure the extra mouse buttons.
Globally or per-application?
Globally, I think. Per application looks more complicated to be honest.
*** Bug 424369 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 34362 ***