★PyQt Style Sheets ★ QLineEdit / QPushButton / QWidget (Login Window)

preview_player
Показать описание
➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
Custom a login window with QLineEdit, QLabel and QPushButton

⭐ Used Object ⭐
〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️
#QLineEdit
#QLineEdit:focus
#QPushButton
#QPushButton:hover
#QPushButton:focus

✨ Hashtags ✨
〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️
#PyQt6 #stylesheet #python3 #python #pythonprojects #QLineEdit #QPushButton
Рекомендации по теме
Комментарии
Автор

Thanks for cognitive videos! They help learning qss and pyqt. 👍

But i have one question. I want realize the next: gradient borders, for example, for QLineEdit. My code:

"QLineEdit{"
"border-top: 4px solid qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 red, stop:0.9 rgba(0, 0, 0, 0));"
"border-left: 4px solid red;"
"border-bottom: 4px solid qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 red, stop:0.9 rgba(0, 0, 0, 0));"
"}"

It's working good. But when i want do 'border-radius' (for example "border-radius: 10px;"), i getting ugly corners (gradient applied for 1/2 corner).

How can i fill radius fully on one color? Or it's unrealistic?

mangoo
Автор

Great video. Can you share the ui source code for this?

MuradMohdZain
Автор

Very diffecult to follow the video.

Please try to make it slower as I understand this is for tutorial purposes.

Thank you.

alielsheikh