PyQt5 Tutorial | Create Basic Drag and Drop Effect (Code included)

preview_player
Показать описание
Your donation will support me to continue to make more tutorial videos!

By creating drag and drop effect, we can provide a simple visual mechanism giving users the ability to transfer text or information between different applications or widgets, kind like the drag and drop thing you do with a clipboard.

In this tutorial I will be covering and creating a very basic drag and drop effect using the QLIneText and QPushButton as example.

Python Code Snippet

Visit my website

#PyQt5 #PythonTutorial
Рекомендации по теме
Комментарии
Автор

bro i want to create app with image label list and i want that labels to be dragable like i can drag them to photoshop to open that image in photoshop or simply drag to desktop or a anther folder to copy it there

VishuTomar
Автор

Hi,
Is there any way we can drag and drog "files" or "shift-selected some files" or "a folder" from desktop, or from Windows Explorer. Then QT can read the file path?
Thanks !!!

bestchild
Автор

Bro, why are you teaching things like this? It's too specific, if you wanna create a playlist to teach people how to code using the PyQt5, start with the basics

jun
visit shbcf.ru