Hi List,
I'm using WTableViews with user-resizable columns. Sometimes (mostly after
loading data, that is) the column width is set automatically by the program
using
table->setColumnWidth(col, val);
when this happens after the columns have already been resized by the user, the
headers of the user-resized columns get kind of stuck on this width and the
width "val" given by WTableView::setColumnWidth() is not applied to them.
I'm using the following code for a workaround which works fine for what I need:
if (itemView != nullptr && itemView->model() != nullptr &&
itemView->isColumnResizeEnabled()) {
itemView->model()->layoutChanged().emit();
}
Am I doing something wrong here, or could this be considered a rendering issue
inside WTableView (and probably WTreeView)?
Regards,
Marc Faber
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest