qt - Show control and handle large rows for QTableView -


i implement chat application (like skype) using qtablewidget display chat messages, it’s slow when display many messages (because each message widget, if chat has 1000 messages, it’ll create 1000 widgets , add qtablewidget .. slow , cost memory :( )

i tend change on qtableview, have read docs , see qtableview display large message, it’s hard display control can interact. ex: need display text can select , button can click, v..v. using paint not enough, it’s … paint pixel, not real control , can’t select text or click button.

i had search , try solution setindexwidget, way seem … qtablewidgets (because create 1000 buttons if have 1000 message well)

is can suggest me instructions :( you


i had implement sample qtable widgets can display control reuseable widgets (base on idea of modal-view-controller) it's not complete +_+ please check more details: https://github.com/tranquan/kjtableview


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -