NB
Size: a a a
NB
NB
Е
NB
NB
МВ
МВ
МВ
NM
class SortFilterProxyModel(QSortFilterProxyModel):
def __init__(self, logList, displayFlags):
super(SortFilterProxyModel, self).__init__()
self.logList = logList
self.displayFlags = displayFlags
def filterAcceptsRow(self, row, parent=None):
if not self.flags['Flag1'] and model.data(index, Qt.DisplayRole).startswith('Flag1'):
return False
else:
return True
def flagsChanged(self, state):
first_index = self.index(0, 0)
last_index = self.index(self.proxyModel.rowCount() - 1, self.columnCount() - 1)
self.dataChanged.emit(first_index, last_index, Qt.DisplayRole)
A
connect(tcpSocket, QOverload<QAbstractSocket::SocketError>::of(&QAbstractSocket::error), [this](QAbstractSocket::SocketError socketError) {
this->displayError(socketError);
});
Error C2784 'unknown-type QOverload<QAbstractSocket::SocketError>::of(R (__cdecl *)(QAbstractSocket::SocketError)) noexcept': could not deduce template argument for 'R (__cdecl *)(QAbstractSocket::SocketError)' from 'QAbstractSocket::SocketError (__cdecl QAbstractSocket::* )(void) const'- как пофиксить?
МС
AS
МС
k
k
МС
МВ
AS
k