pyqt clipboard

The clipboard holds data you copy and paste. You can copy text from one program to another, like copying text from a website into notepad.

We will create a program that has access to the clipboard using PyQt. If we copy text from any program, it will be added into the textarea of the PyQt application.

pyqt clipboard

Related course:

Clipboard example

We can access the clipboard using the class QClipboard. Then we can output that text. We connect the clipboard to a method using the line:

Then we grab the contents using

Try the example below

Previous Post
Next Post

Leave a Reply