View Single Post
Old 04-23-2025, 08:06 AM   #646
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,325
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by kiwidude View Post
The only additional thing that comes to mind I "could" do in theory is do what Kovid added for the main UI grid of offering a column header context menu for "Adjust width of column for xxx". TBH I think that dialog is overkill (I've only just found it myself) but I can understand it would give you more granular control over a column width. I don't know if Kovid wrapped it up all his functionality in a nice reusable delegate that would make this a trivial change - I certainly wouldn't want to reinvent the wheel by having to recreate it myself.
It is the "class AdjustColumnSize(QDialog)" dialog in gui2.library.views. IIRC it is self contained. It requires a QTableView object. It might work with a QTableWidget as that is a subclass of QTableView, but I've never tried it.

And everything there was requested when the dialog was written.
chaley is offline   Reply With Quote