pyqt

Progress Bar in Qt5 (python)

I make the application in a completely different style from windows, that is, I make the style of all widgets my own, using ... -just as a an example of what I want (the goal is just to make it out of a png file (s), no matter what kind of image it is)

How to remove the distance between blocks in QGridLayout when Fixed / maximum size of widgets?

If you try to limit the size of the widget, then only the horizontal space disappears when spacing=0, is it possible to remov ... dgets.QVBoxLayout(widget) mainbox.addLayout(gridbox) self.setCentralWidget(widget) self.setMinimumSize(500, 500)

Changing the Color Dialog PyQt5

In the vastness of stackoverflow, I found an example with color_dialog in PyQt5. I wanted to add it to my app, but I want to ... app = QtWidgets.QApplication(sys.argv) w = MainWindow() w.resize(640, 480) w.show() sys.exit(app.exec_())

3D model animation in Python

I have an application on PyQt and I want to add a window with animation 3D models. I have the rig of this model, the model an ... ;/string> </property> </widget> </widget> <resources/> <connections/> </ui>

How do I change the text color in QLabel?

There is QLabel, how do I change the text color in RGB? self.Label = QtWidgets.QLabel("", self) self.Label.move(50, 30) self.Label.resize(421, 41)

Why does qApp. quit () require two calls from QDialog?

There is a code containing the main window and the dialog box. The dialog box starts immediately after the main one, because ... ui.setupUi(MainWindow) MainWindow.show() dlg = Ui_Dialog(MainWindow.x(), MainWindow.y()) dlg.exec() sys.exit(app.exec_())

working with the QTabWidget class, placing tabs

There is a panel with tabs (there are only three), how to make tab number 3 on top like here: I would be very grateful Code: ... urrentIndex(0) vbox = QtWidgets.QVBoxLayout() vbox.addWidget(tab) window.setLayout(vbox) window.show() sys.exit(app.exec_())

Creating a transparent window on top of the others

How do I create a transparent window that will draw on top of all windows, say a square in python? (If at all possible)

How do I implement a slider that controls when an mp3 file is playing?(PyQt 5, Python 3)

I've seen some examples where QSlider was created that was bound to QMediaPlayer. But these examples were complicated by vari ... sys.argv) window = MyWindow() window.setWindowTitle('MP3-player, PyQt5') window.show() sys.exit(app.exec_())

PyQt bind the size of the elements to the size of the window

I have a complex menu in PyQt made in Qt Designer: here. It consists of MplCanvas and QGroupBox. I need to make sure that wh ... and I would like it to be on the first and work Tab for the transition to data entry, is it possible to configure it somehow?

How to add gif to label pyqt5

I want to add gif.gif animation to label. If you set it as pixmap, then nothing happens. How do I add gif.gif to a regular la ... import sys app = QtWidgets.QApplication(sys.argv) window = ExampleApp() window.show() sys.exit(app.exec_())

Login window, password verification

Just started learning PYQT. I have a code in which I tried to write a login and password window. I want to make sure that th ... Text(_translate("MainWindow", "Максимальная длина пароля - 12")) self.label_3.setText(_translate("MainWindow", "*"))

Selecting a QFileDialog file and / or folder

How can I put on the button the action of selecting either a file or a folder. There are options: QtWidgets.QFileDialog.getEx ... ие if __name__ == '__main__': # Если запускаем файл напрямую, а не импортируем main() # то запускаем функцию main()

Python, PyQt5 is it possible to draw a rectangle without using OOP?

You need to draw a rectangle (red for example) and create a method to change its size WITHOUT using an object-oriented approa ... w.show() sys.exit(prg.exec()) def change_rectangle_size(width): # этот метод должен менять размер прямоугольника pass

How to elementwise extract values from QtCore.QPointF

Extracting data line_serieG.append(QtCore.QPointF(self.min, z)) line_serieG.append(QtCore.QPointF(self.max + 1, z)) vectorG ... 0, 1.835) PyQt5.QtCore.QPointF(1.0, 1.835) How do I get individually what's in parentheses? The data will be used for PYQT5.

directory tree, and list of files in PyQt5

Need to insert a directory tree, and a list of files, in the application on PyQt5, I did not find it in the documentation. Ma ... print(a.text()) if __name__ == '__main__': app = QApplication(sys.argv) ex = App() sys.exit(app.exec_())```

By pressing a key-a sound is made

How can I implement a key press to produce a sound in PyQt, and is it possible to implement it at all?

How to draw an N-terminal star Qpainter

How to draw N-the final star, which is always in the center of the parent block through QPainter, knowing only the radius of the circumscribed circle?

insertColumns (QAbstractTableModel) does not work correctly)

Encountered a problem: when trying to add a column after adding it N-rows(in my example 2), it turns out that: Fig.1. Added ... on2.clicked.connect(lambda: model.insertRows(0, 2)) button2.show() button2.move(100, 200) sys.exit(app.exec_())

border-right not at full height

Using this: QPushButton:hover { background-color: #666666; border-right: 5px solid #3497D8; } I have this: I want this: