Qt-interest Archive, March 2008
QTableWidget Column Width
Message 1 in thread
Hi All,
I might be missing something very obvious here but I can't seem to find
how you can set a given column in a QTableWidget. In QTableView, there
is a Public Function who returns a given column width, so I expected
there to be a 'setter' function along with it. something like
void setColumnWidth(int /column/, int /width/)
But I have not come across this. Any suggestions?
(Using Qt 4)
Thank you-
Stacy Alley
--
[ signature omitted ]
Message 2 in thread
Never mind. setColumnWidth() is available. I just didn't see it in the
docs, but I just decided to try it,
and it compiled!
Must be inherited from somewhere I haven't looked.
?
Stacy Alley (Astro) B6 wrote:
> Hi All,
> I might be missing something very obvious here but I can't seem to
> find how you can set a given column in a QTableWidget. In
> QTableView, there is a Public Function who returns a given column
> width, so I expected there to be a 'setter' function along with it.
> something like
> void setColumnWidth(int /column/, int /width/)
>
> But I have not come across this. Any suggestions?
> (Using Qt 4)
> Thank you-
> Stacy Alley
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
--
[ signature omitted ]
Message 3 in thread
QTableWidget is inherited from QTableView, and there's
QTableView::setColumnWidth(int column, int width) function. What doesn't
work?
On Fri, 14 Mar 2008 20:40:22 +0300, Stacy Alley (Astro) B6
<salley@xxxxxxxx> wrote:
> Hi All,
> I might be missing something very obvious here but I can't seem to find
> how you can set a given column in a QTableWidget. In QTableView, there
> is a Public Function who returns a given column width, so I expected
> there to be a 'setter' function along with it. something like
> void setColumnWidth(int /column/, int /width/)
>
> But I have not come across this. Any suggestions?
> (Using Qt 4)
> Thank you-
> Stacy Alley
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
--
[ signature omitted ]