PyQt5: How to create clickable QLabel/custom button?
I am new to pyqt, and I need to create custom buttons with the following features:
- custom shapes, eg. circular, rectangular, etc
- custom background colors or images
- effects on hover, like changing color, raising/depressing of button etc.
Where can I learn to do these easily? Hope the people here are not as easily offended as the guys in stackoverflow ;)
Hi and welcome to devnet,
Are you tied to QWidget ? Depending on the rest of your UI you could consider the Graphics Scene framework or even QML.
Thanks. Where can I get started with Qml?
I'd say "here":http://pyqt.sourceforge.net/Docs/PyQt5/qml.html
That there is a very short thing. I need something from where I can learn qml in full please. Thanks a lot!
Did you took a look at the qml chapters in Qt's documentation ?
There's also the "qmlbook":http://qmlbook.org
Please help me find the correct framework/tools for my project.
My project is to make a desktop application that shows using animations how various algorithms work, like common sorting, searching and graph algorithms. Much like the things done here in visualgo.net. In fact I intend to do my work much like that in the mentioned website.
My plan is to do the project in python using PyQt5 framework. I am new to this framework as to python as a whole. So I would like a detailed guideline towards what I should learn to complete my project within the time limit (a little more than a month), where to begin, etc.
If you think I should use a different framework, then a cite to an active community for that framework would be very helpful. Also please name a few more active communities where I can obtain help.
Thank you for taking time reading this, and thanks in advance for any help you provide!
BTW, I have started learning QML and it looks like fun in there! Thanks for your help!
I'd say that with QML you're on the right track.