Style settings for the QprogressDialog class of python PyQt5

PyQt5"s QprogressDialog is a good plug-in when it takes time to execute, but how do you set its progress bar progress text to be displayed on the progress bar? And the task name of the current processing progress bar is displayed on the progress bar?
figure:

1. Display numbers such as "data being updated" and "15%" on the progress bar in the middle.
2. Can the cancel button be removed. All you need is a progress bar, no buttons.

Please give me your advice.

Oct.10,2021

1. QprogressDialog itself should not have such a function. The QprogressDialog interface consists of three parts: the QProgressBar in the middle of the QLabel, above and the cancel button below. So for the effect required in 1, all I can think of is to first use QProgressBar's setTextVisible (False) to make "15%" invisible, then create a new QLabel in QprogressDialog and paste it on the progress bar, and then associate the value change signal of QProgressBar with the content of this new Label

.

2. The cancel button can be removed by the function setCancelButton of QProgressDialog. You can set the cancel button to 0. For more information, please see https://doc.qt.io/qt-5/qprogr.

.

fonts can be placed in the middle as long as styleSheet: text-align:center is set

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4382d-44a31.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4382d-44a31.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?