Input dialog for PyQt5 (QInputDialog)

The use of QInputDialog in PyQt5. The QInputDialog class of Qt provides a simple dialog box to obtain the user's single input information. It provides four data types of input:1) String type (method = QInputDialog.getText); 2) Int type data (method = QInputDialog.getInt); 3) double type data (method = QInputDialog.getDouble); 4) The entry in th ...

Posted on Thu, 02 Dec 2021 17:47:01 -0500 by eduard77

PyQT5 software development - control Chapter 3 single line text box QLineEdit

Text box is a frequently used control in GUI interface. Text box is divided into single line text box and multi line text box. This paper first talks about single line text box. Single line text box is widely used, such as password account password box, search bar, path address bar, etc. 3.1 introduction QLineEdit can input and display text i ...

Posted on Fri, 26 Nov 2021 19:57:20 -0500 by aaaaCHoooo

Day 26 | day 28 learn PyQt5, QListView of advanced controls

The list component QListView is a class derived from QAbstractItemView and implements the interface defined by the QAbstractItemView class. It is one of the view classes in the Model/View architecture and a part of the Model/View framework. It provides model-based list mode or icon mode views. It displays the items stored in the model as a simp ...

Posted on Sun, 03 Oct 2021 19:28:12 -0400 by PaulRyan

Day 20 | day 28 learn PyQt5, slide control

The slider QSlider control provides a vertical or horizontal slider. The slider is a typical control used to control bounded values. It allows users to move the slider in a certain range along the horizontal or vertical direction, and convert the position of the slider to an integer value within a legal range. Sometimes this method is more natu ...

Posted on Wed, 29 Sep 2021 23:11:23 -0400 by Kurrel