This is a Python script that generates QR codes with a graphical user interface (GUI) using PyQt5. With this application, you can easily generate QR codes for various purposes such as sharing URLs, text messages, contact information, and more.
- Generate QR codes with custom data, box size, and border settings.
- Choose fill and background colors for the QR code.
- Save the generated QR code as a PNG image file.
- Python 3.x
- PyQt5
- qrcode
-
Make sure you have Python 3.x installed on your system. Here is the link from the official Python website: Python Downloads
-
Install the required dependencies by running the following command:
pip install PyQt5 qrcode
-
Clone or download the repository to your local machine.
-
Open a terminal or command prompt and go to the project directory.
-
Run the following command to start the application:
python qr_code_generator.py
-
The QR Code Generator GUI window will appear.
-
Enter the data you want to turn into QR code in the "Data" field.
-
Optionally, adjust the box size and border parameters.
-
Click the "Fill Color" button to select a custom color for the QR code modules (the default is black).
-
Click the "Background Color" button to choose a custom color for the QR code background (the default is white).
-
Click the "Generate QR Code" button.
-
A file dialog will open, allowing you to choose the location and name for the generated QR code image file. Select a location and click "Save".
-
The QR code image will be generated and saved as a PNG file.
UI | Qr Code |
---|---|
![]() |
![]() |
Contributions are welcome! Feel free to open an issue or submit a pull request if you have any suggestions or feature requests or bug fix.
This project is licensed under the MIT License.
The QR Code Generator script was developed by Md Sohanul Haque.