View Single Post
Old 11-05-2023, 07:23 AM   #78
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,427
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
yeah i dont think using a cell widget is workable with large libraries. The "right" way to fix this if not use QTableItems and instead use a proper model with caching. And then use a styled delegate that draws its buttons based on the data in the model for the current cell. And then it will have to handle mouse events and so on, its a lot of work. I think the checkmark is a reasonable compromise. One can add a tooltip to it saying press f2 to edit or whatever.

@charles: I think a styled delegate would be doable in python but given that it has to handle events and state and so on it will be a lot of work
kovidgoyal is offline