저는 PyQt + Qt Designer를 사용하고 있으며 이것을 PostgreSQL 데이터베이스에 연결했습니다. 이 코드 내 데이터베이스에서 레코드를 표시 할 때 : 그들은이 같은 내 데이터베이스에 보이는 것처럼 그들이 보게해야하지만, 2.3177e + 09 :숫자 형식이 이상한 형태로 표시됩니다.
if self.Kirurg_checkBox.isChecked():
Kirurg_query = QSqlQueryModel()
Kirurg_query.setQuery("SELECT * FROM kirurg")
global view_Kirurg
view_Kirurg = QtGui.QTableView()
view_Kirurg.setModel(Kirurg_query)
view_Kirurg.setWindowTitle('kirurg')
view_Kirurg.show()
숫자 열은 다음과 같이 2317698765.이를 (PostgreSQL 내부에서) 컬럼 타입을 문자 (11)에서 숫자 (11,0)로 바꿀 때까지 잘 돌아갔다. 그 기둥들이 정상적인 방식으로 가치를 보여줄 수있는 방법이 있습니까,이 이상한 것이 아닙니다.
편집 : 내가 넣었습니다
경우 열 == 0 (이상한 값이 아니라 마지막 열에서 어디 원인, 열 4). 그리고 그것은 완전히 내 첫 번째 열 (열 0) 삭제, 그것은 마지막 열 (열 4) 고정 그래서 잘 보이는, 그리고 그것은 나에게 오류 라인을 많이 제공합니다
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
AttributeError: 'float' object has no attribute 'toString'
Traceback (most recent call last):
File "C:\Python34\Lib\site-packages\PyQt4\BazaPodataka\bazapodataka.py", line 50, in paint
textQString = indexQModelIndex.model().data(indexQModelIndex, QtCore.Qt.EditRole).toString()
....
....
....
그들 모두의 더 무리를 같은.
내 게시물을 편집했습니다. – Luka
'indexQModelIndex.model(). data (indexQModelIndex, QtCore.Qt.EditRole)'의 Meybe 반환 값은 float 데이터 유형 ('QVariant'가 아님)입니다. 좋아, 문자열로 변환하십시오.편집 게시물을 확인하십시오. 나는 질문이있다, 당신 PyQt 버전은 무엇입니까? 감사. –
이제 작동 중입니다! 당신은 다시 한번 생명의 은인입니다. :) PyQt4,이 버전을 사용하고 있습니다 : PyQt4-4.11.1-gpl-Py3.4-Qt4.8.6-x64.exe. 한가지 더 물어 보겠습니다. 나는 column == 2를 넣었고, 그것이 모든 숫자 열에 대해 작동하는 이유는 무엇입니까? 예를 들어 ID 열 (열 0) 및 전화 번호 열 (열 4)에서 작동합니까? – Luka