PyQt QLineEdit with rounded corners
Project description
pyqt-rounded-corners-lineedit
PyQt QLineEdit with rounded corners
Requirements
- PyQt5 >= 5.8
Install
python -m pip install pyqt-rounded-corners-lineedit
Included Packages
- absresgetter - To get absolute path of resource file
Detailed Description
Rounded corners, borderless line edit.
If you want to add the border, add code like below.
lineEdit.setStyleSheet(lineEdit.styleSheet() + 'QLineEdit { border: 1px solid black; }')
Example
Code Sample
from PyQt5.QtWidgets import QApplication, QGridLayout, QWidget
from pyqt_rounded_corners_lineedit import RoundedCornersLineEdit
class Widget(QWidget):
def __init__(self):
super().__init__()
self.__initUi()
def __initUi(self):
lineEdit = RoundedCornersLineEdit()
# if you want to set the border
# lineEdit.setStyleSheet(lineEdit.styleSheet() + 'QLineEdit { border: 1px solid black; }')
lay = QGridLayout()
lay.addWidget(lineEdit)
self.setLayout(lay)
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
widget = Widget()
widget.show()
app.exec_()
Result
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyqt-rounded-corners-lineedit-0.0.11.tar.gz
.
File metadata
- Download URL: pyqt-rounded-corners-lineedit-0.0.11.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4287c47bf474b906e1fda30b771b82b6ad279e9dc85c82a6e9cd3c4227446a12 |
|
MD5 | ee8e542a32bdf3b036882e0e93ee3412 |
|
BLAKE2b-256 | 3949ff7aa59f5e8435b1f5a70bc1c21f644c7304a9a77475dc94f31abd55d692 |
File details
Details for the file pyqt_rounded_corners_lineedit-0.0.11-py3-none-any.whl
.
File metadata
- Download URL: pyqt_rounded_corners_lineedit-0.0.11-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0250572875179d9d22d80bea4c5d59a960160638a916790a660ca2c27625f4f3 |
|
MD5 | 9712444c4a15200d8877e2d25576a25b |
|
BLAKE2b-256 | 4e3ef1e490cca0227a18868db21649d9da31c692baf7a2b61855fe229b7e36fe |