- 
    
Bug
 - 
    Resolution: Done
 - 
    
P3: Somewhat important
 - 
    None
 - 
    5.14.1
 - 
    None
 - 
    Python 3.8.2
 
- 
        
 - 
        308aba2154699596e3fd0973501213423462a80b (pyside/pyside-setup/5.14)
 
In this code, which inserts data into a QStandardItemModel (called resourcesModel) with QTableView:
item = QStandardItem() item.setData(123123, Qt.EditRole) resourcesModel.setItem(1, 1, item)
double-clicking on a cell presents a default QLineEdit (which you can put letters into), instead of QSpinBox, which would be expected since data is an integer.
Possible explanation (by user eyllanesc on StackOverflow):
What happens is that PySide2 converts the integer from python to LongLong (QVariant::LongLong=4) in C++ which is not handled by the default QItemEditorFactory by default making a QLineEdit used (in PyQt is converted to QMetaType::Int=2).
- relates to
 - 
                    
PYSIDE-2066 Unpredictable sorting of integers with QSortFilterProxyModel
-         
 - Reported
 
 -