PyQt5 QtQuick Writing Text In Window

In this PyQt5 QtQuick article i want to show you Writing Text In Window.

So before this we have learned that How To Create Window In QtQuick.

 

 

Python GUI Development Tutorials

1: Kivy GUI Development 

2: wxPython GUI Development 

3: TKinter GUI Development

4: Pyisde2 GUI Development

5: PyQt5 GUI Development 

 

 

OK now let’s write our code.

 

 

This is our main.qml file.

 

 

 

 

 

And this is the main.py for loading our main.qml, i have described this file in my previous article.

 

 

 

 

 

So in the above code we have created our main Window element with width, height,

name and color of the window. also you can see we have given a title for the window.

 

 

 

 

 

This is the rectangle that we want to draw in the window. basically we have given the

width and height for the rectangle and also with border. 

 

 

 

 

 

And here is the main topic writing text using Text element in QtQuick. this is just a basic text.

we have given the text, font size and also color for the text.

 

 

 

 

 

 

So run the complete source code this will be the result.

PyQt5 QtQuick Writing Text In Window
PyQt5 QtQuick Writing Text In Window

 

 

 

 

 

Also you can watch the complete video for this article.

Subscribe and Get Free Video Courses & Articles in your Email

 

Codeloop
Share via
Copy link
Powered by Social Snap
×