i populating cells in 2 columns of qtablewidget
qtextedit
widgets. when number of rows on ~1250 python.exe crashes:
pythhon.exe has stopped working
with message in console, repeating on , on every next widget in row on 1250:
qwidget::create: failed create window (the current process has used of system allowance of handles window manager objects.)
so question how increase limit of system handles win7 (i've found tutorial xp here , sharedsection set 1024,20480,768 , i've read not safe increase desktop heap on 20480) or maybe populate table other way? how that:
textedit = qtgui.qtextedit() textedit.setplaintext("some text in 1-100 lines") textedit.setreadonly(1) textedit.setframestyle(qtgui.qframe.noframe) textedit.setfixedheight(400) textedit.setfixedwidth(2000) tablewidget.setcellwidget(i,j,textedit)
i have python 2.6 , pyqt 4.7
since there no other solution had populate table other way...
tablewidget.setitem(i, j, qtgui.qtablewidgetitem("text"))
i've kept qtgui.qtextedit()
in case "text" has more 100 lines because scrolling table in case slow when use setitem
Comments
Post a Comment