Skip to main content

pyqt-rounded-corners-lineedit

PyQt QLineEdit with rounded corners

Requirements

  • PyQt5 >= 5.8

Install

python -m pip install pyqt-rounded-corners-lineedit

Included Packages

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

image

Metadata

Release files for pyqt-rounded-corners-lineedit 0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyqt-rounded-corners-lineedit 0.0.11
File Size Uploaded
pyqt-rounded-corners-lineedit-0.0.11.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyqt-rounded-corners-lineedit 0.0.11
File Interpreter ABI Platform
pyqt_rounded_corners_lineedit-0.0.11-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 kB

Release files / pyqt-rounded-corners-lineedit-0.0.11.tar.gz

Download URL pyqt-rounded-corners-lineedit-0.0.11.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4287c47bf474b906e1fda30b771b82b6ad279e9dc85c82a6e9cd3c4227446a12
BLAKE2b-256 checksum
How to use checksums
3949ff7aa59f5e8435b1f5a70bc1c21f644c7304a9a77475dc94f31abd55d692
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 CPython/3.7.6

Release files / pyqt_rounded_corners_lineedit-0.0.11-py3-none-any.whl

Download URL pyqt_rounded_corners_lineedit-0.0.11-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0250572875179d9d22d80bea4c5d59a960160638a916790a660ca2c27625f4f3
BLAKE2b-256 checksum
How to use checksums
4e3ef1e490cca0227a18868db21649d9da31c692baf7a2b61855fe229b7e36fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.0.11 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page