- It provides more professional tools as well
- Designed by: Mahmoud Khalid
pip install PyQt6
pip install pyqrcode
pip install password_strength
import QtCreator
# Create main widget
class Application(QtCreator.QuickMainWidget):
def __init__(self, parent):
super(Application, self).__init__(
parent=parent,
flags=QtCreator.Qt.WindowType.SubWindow,
attribute=QtCreator.Qt.WidgetAttribute.WA_StyledBackground,
resizable=True,
object_name="mainWidget"
)
# Create layout
layout = QtCreator.QHBoxLayout()
self.mainWidget.setLayout(layout)
self.resize(300, 450)
# Create lineEdit object
self.lineEdit = QtCreator.QuickLineEdit(
parent=self,
placeholder_text="Username",
clearable=True,
add_icon=True,
icon=QtCreator.QPixmap('userIcon.png'),
fixed_height=41,
object_name="lineEdit"
)
layout.addWidget(self.lineEdit)
# Create pushButton object
self.pushButton = QtCreator.QuickPushButton(
parent=self,
text="Login",
font_size=14,
fixed_height=41,
object_name="pushButton"
)
layout.addWidget(self.pushButton)
python test/qtcreator_unittesting.py