Trolltech Home | Qt4-preview-feedback Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt4-preview-feedback Archive, May 2007
Bug report: Interview example in Qt 4.3.0rc1


Message 1 in thread

Hi Trolls,

i just noticed that the interview demo that comes with qt4.3.0rc1 is
showing graphic bugs.
(i'm using the binary distribution, running on Windows XP Prof. SP2)

See the attached screenshot. All i did was start the demo and press
cursor down, so the first view has focus, the other views follow, but
the middle one is not updating correctly. if i click on the middle view
so it gets focus, it updates and everything looks correctly again.

Cheers,
Peter
 <<interview.PNG>> 

Attachment:

Attachment: interview.PNG
Description: PNG image


Message 2 in thread

Peter Prade wrote:
> Hi Trolls,
> 
> i just noticed that the interview demo that comes with qt4.3.0rc1 is
> showing graphic bugs.
> (i'm using the binary distribution, running on Windows XP Prof. SP2)
> 
> See the attached screenshot. All i did was start the demo and press
> cursor down, so the first view has focus, the other views follow, but
> the middle one is not updating correctly. if i click on the middle view
> so it gets focus, it updates and everything looks correctly again.
> 
> Cheers,
> Peter

We can reproduce this here. Thanks for the report, and we'll hopefully 
have that fixed before the release.

Regards,
--
 [ signature omitted ] 

Message 3 in thread

This looks very like an issue I get with the qt4.3.0rc1, with a
QTreeWidget whose data is sourced from a QStandardModelItem. This data
is updated periodically by a timer and any text items that change text
disappear from the display. If I subsequently click on the text item
it gets redrawn correctly, but the text soon changes again and then it
disappears once more.

It gets even stranger as if I make the first column hidden, say by
scrolling the horizontal scroll bar suddenly all the text is drawn
correctly even if it changes.

I can reproduce this problem on both Win32 and X11.

Regards,
Simon



On 24/05/07, Trond Kjernaasen <trond@xxxxxxxxxxxxx> wrote:
> Peter Prade wrote:
> > Hi Trolls,
> >
> > i just noticed that the interview demo that comes with qt4.3.0rc1 is
> > showing graphic bugs.
> > (i'm using the binary distribution, running on Windows XP Prof. SP2)
> >
> > See the attached screenshot. All i did was start the demo and press
> > cursor down, so the first view has focus, the other views follow, but
> > the middle one is not updating correctly. if i click on the middle view
> > so it gets focus, it updates and everything looks correctly again.
> >
> > Cheers,
> > Peter
>
> We can reproduce this here. Thanks for the report, and we'll hopefully
> have that fixed before the release.
>
> Regards,
> --
> Trond K.
>
> To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx
>
>

Attachment:

Attachment: MissingText.png
Description: PNG image


Message 4 in thread

Simon Bourne wrote:
> This looks very like an issue I get with the qt4.3.0rc1, with a
> QTreeWidget whose data is sourced from a QStandardModelItem. This data
> is updated periodically by a timer and any text items that change text
> disappear from the display. If I subsequently click on the text item
> it gets redrawn correctly, but the text soon changes again and then it
> disappears once more.
> 
> It gets even stranger as if I make the first column hidden, say by
> scrolling the horizontal scroll bar suddenly all the text is drawn
> correctly even if it changes.
> 
> I can reproduce this problem on both Win32 and X11.
> 
> Regards,
> Simon

It might very well be related. The original issue was fixed yesterday, 
and you can try the attached patch to see if that fixes your problem 
(it's only a one line change).

Regards,
--
 [ signature omitted ] 

Message 5 in thread

Unfortunately this patch does not fix this issue I reported
previously. On further examination it appears to be when I set the
Qt::UserRole, to store application specific data (for example a
pointer to data related to the item in the table), for items in my
QStandardModelItem:

	QMap<int, QVariant> roles;
	roles[Qt::UserRole] = QVariant(0); // data would go here
	m_model->setItemData(m_model->index(0, 0), roles);

This is enough to make text in other columns of the same row to
disappear. Is this a bug or am I using this incorrectly?

Qt::UserRole - The first role that can be used for
application-specific purposes.

Regards,
Simon


On 25/05/07, Trond Kjernaasen <trond@xxxxxxxxxxxxx> wrote:
> Simon Bourne wrote:
> > This looks very like an issue I get with the qt4.3.0rc1, with a
> > QTreeWidget whose data is sourced from a QStandardModelItem. This data
> > is updated periodically by a timer and any text items that change text
> > disappear from the display. If I subsequently click on the text item
> > it gets redrawn correctly, but the text soon changes again and then it
> > disappears once more.
> >
> > It gets even stranger as if I make the first column hidden, say by
> > scrolling the horizontal scroll bar suddenly all the text is drawn
> > correctly even if it changes.
> >
> > I can reproduce this problem on both Win32 and X11.
> >
> > Regards,
> > Simon
>
> It might very well be related. The original issue was fixed yesterday,
> and you can try the attached patch to see if that fixes your problem
> (it's only a one line change).
>
> Regards,
> --
> Trond K.
>
> ==== //depot/qt/4.3/src/gui/itemviews/qtreeview.cpp#26 (text) ====
>
> @@ -1229,7 +1229,7 @@
>              d->spanning = viewItems.at(i).spanning;
>              if (!multipleRects || !drawn.contains(i)) {
>                  drawRow(painter, option, viewItems.at(i).index);
> -                if (multipleRects)
> +                if (multipleRects && area.contains(option.rect))
>                      drawn.append(i);
>              }
>              y += itemHeight;
>
> To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx
>
>

To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx