| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 4 | |
Hi,
After adding a row in a QTable view
(
bool ProfileModel::insertRow(int position, const QModelIndex &parent)
{
beginInsertRows(QModelIndex(), position, position);
Profile p("");
profiles.insert(position, p);
endInsertRows();
return true;
}
), the row is added but the hidden part of the vertical header (the part that
is shown by scrolling the QTableView) is not properly rendered before it is
repainted by any event (another window goes over it or the window is
minimized,...)
I attached a sreenshot to get wath I'm talking about :-)
Is that normal ? Is there something to do to avoid that ?
In advance, thanks.
Detlev.
Attachment:
Attachment:
qt-repaint2.png Attachment:
signature.asc
Attachment:
Attachment:
signature.asc
Description: PNG image
Description: This is a digitally signed message part.
Message 2 in thread
On Thursday 19 July 2007 16:38:11 Detlev Casanova wrote:
> Hi,
> After adding a row in a QTable view
> (
> bool ProfileModel::insertRow(int position, const QModelIndex &parent)
> {
> beginInsertRows(QModelIndex(), position, position);
>
> Profile p("");
> profiles.insert(position, p);
>
> endInsertRows();
> return true;
> }
> ), the row is added but the hidden part of the vertical header (the part
> that is shown by scrolling the QTableView) is not properly rendered before
> it is repainted by any event (another window goes over it or the window is
> minimized,...)
>
> I attached a sreenshot to get wath I'm talking about :-)
>
> Is that normal ? Is there something to do to avoid that ?
>
> In advance, thanks.
>
> Detlev.
What version of Qt? Have you tried against snapshots?
-Benjamin meyer
--
[ signature omitted ]
Message 3 in thread
On Friday 20 July 2007 10:48:31 Benjamin Meyer wrote:
> On Thursday 19 July 2007 16:38:11 Detlev Casanova wrote:
> > Hi,
> > After adding a row in a QTable view
> > (
> > bool ProfileModel::insertRow(int position, const QModelIndex &parent)
> > {
> > beginInsertRows(QModelIndex(), position, position);
> >
> > Profile p("");
> > profiles.insert(position, p);
> >
> > endInsertRows();
> > return true;
> > }
> > ), the row is added but the hidden part of the vertical header (the part
> > that is shown by scrolling the QTableView) is not properly rendered
> > before it is repainted by any event (another window goes over it or the
> > window is minimized,...)
> >
> > I attached a sreenshot to get wath I'm talking about :-)
> >
> > Is that normal ? Is there something to do to avoid that ?
> >
> > In advance, thanks.
> >
> > Detlev.
>
> What version of Qt? Have you tried against snapshots?
It's Qt 4.3.0. I didn't try any snapshots but I try to keep this version up to
date.
Description: This is a digitally signed message part.