[Development] PROPOSAL: QtWidgets: Add setRowVisible and setColumnVisible to QTableView

Roman Inflianskas infroma at gmail.com
Mon May 20 18:11:54 CEST 2013


As Chris Kawa pointed in thread
<http://qt-project.org/forums/viewthread/27971/>there are methods
QTableView::setRowHidden<http://qt-project.org/doc/qt-5.0/qtwidgets/qtableview.html#setRowHidden>
*,*QTableView::setColumnHidden<http://qt-project.org/doc/qt-5.0/qtwidgets/qtableview.html#setColumnHidden>
.
OK, that means the problem is in docs: there are no references to those
methods from (show/hide)(Row/Column). How could I find it if methods don’t
copy QWidget’s logic and even descriptions of methods don’t contain word
“visible”?
But: why this methods are inverted? I think it would be more natural if
they be setRowVisible/setColumnVisible.


On Mon, May 20, 2013 at 7:53 PM, Roman Inflianskas <infroma at gmail.com>wrote:

> Hi.
> I want to change visibility of rows and columns of QTableWidget. I know,
> that I can use (show/hide)(Row/Column) methods, but sometimes more elegant
> solution is to use functions that take visibility factor. So, I think it
> would be better to have methods setRowVisible/setColumnVisible. Second
> reason is current inconsistency: QWidget and other classes provide all this
> methods: show, hide, setVisible, while QTableView doesn’t have similar
> methods.
> I think that this wouldn’t break API.
>
> --
> Regards, Roman Inflianskas
>



-- 
Regards, Roman Inflianskas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130520/8e3aae2b/attachment.html>


More information about the Development mailing list