

Self.add_row = QPushButton("Add Row", localWidget) (self.proxy) # Revised code, for View/Proxy/Model #(self.model) # Original code, for View/Model Self.proxy = CustomProxyModel() # Customized Filter Text = self.sourceModel().index(source_row, column, source_parent).data()Įxpresion, Qt.CaseInsensitive, QRegExp.RegExpĭata =, ]


Return super().flags(index) | Qt.ItemIsEditableĬlass CustomProxyModel(QSortFilterProxyModel):ĭef filterAcceptsRow(self, source_row, source_parent):įor column, expresion in ():

Return self._dataĭef setData(self, index, value, role=Qt.EditRole): If role in (Qt.DisplayRole, Qt.EditRole): Self.beginInsertRows(QModelIndex(), self.rowCount(), self.rowCount())ĭef data(self, index, role=Qt.DisplayRole): Return super().createEditor(parent, option, index) # QLineEdit for string values and QTimeEdit for QTime values # no need to check for the other columns, as Qt automatically creates a lazarus-project_1.8.0-0_bįinally, you need to prevent upgrading of these packages, i.e.Def createEditor(self, parent, option, index): fpc_3.0.4-1_bįPC Sources: sudo apt install. Lazarus IDE: sha256sum lazarus-project_1.8.0-0_bĦ2024510514c2f6e16d50c1cae11c9e0329e91beecf35e5e8e5a09c43f2cdde8Īfter checking the hash sums, either click on each package and install them in GUI, or do it from terminal:įPC Compiler: sudo apt install. We will not be installing the packages from repository, it just does not work, we have to download it over secure connection from. Updated for the latest versions: Lazarus 1.8.0 and FPC 3.0.4.įirst off, you need to purge the packages already installed from the official repository: sudo apt-get purge fpc fpc-src lazarusĪnd purge all related packages, if there are any: sudo apt-get -purge autoremove
