You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, March 27th 2008, 2:13am

Kparts KonsolePart Copy / Paste

Hi,

Its my first dive into kde / qt / c++ and I'm not doing to well.
I'm trying to add keyboard shortcuts for copy/paste to/from the clipboard to quadkonsole.
Quadkonsole uses Kparts to embed multiple konsoleparts into a single window.

I was able to change the default paste shortcuts that already existed, but I'm having problems adding a copy function to which I can bind a shortcut.

I tried to implement the copyClipboard method as it is done here: http://websvn.kde.org/trunk/KDE/kdebase/…928&view=markup

Unfortunately I haven't had much luck getting this figured out.

Have I simply bitten off more than a brand-newbie can chew here? Can anyone give me some advice or possibly a snippet showing me how to retrieve the currently selected text from a Kpart widget (or more specifically the konsolepart widget)?

Thanks for the help.

2

Friday, March 28th 2008, 8:54pm

I found another similar project called yakuake and there is a note there from the developer that kparts widgets have no method of grabbing the currently selected text ... bummer.