logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: After resizing Widget with table, table contents not properly displayed: msg#00019

Subject: Re: After resizing Widget with table, table contents not properly displayed
Hello Richard,

I appended two example scripts. The first shows the strange update behaviour. In the second script I reimplemented method resizeEvent. So the second one works. I also tried the Qt::debug qw(virtual) statement but unfortunately the output doesn't give me a clue.

Oliver

Richard Dale wrote:
On Wednesday 07 July 2004 08:24, Oliver Kreuer wrote:

Hello,

one of my widgets contains a table which shows one or two columns with 5
rows of content.
If I resize the widget when the table shows two columns the table
content is not properly shown after resizing. For example, strings of
column two suddenly show up in column one after I maximized the widget
using the maximize button of the window manager decoration.

Programs written in C++ don't show this strange behaviour.

I've found a work around. I reimplemented the resizeEvent handler as
follows:

sub resizeEvent
{
   if ($filled eq "true")
   {
        table->updateContents();
   }
}

If my table is filled with content call "updateContents" for every
resize event.
But I think that normally Qt should handle this itself.
Any suggestions?

This sounds a strange error - can you post a complete program which reproduces the problem. PerlQt has various debugging modes you can turn on to see which virtual method callbacks are being called, so you could add this to the top of your program and see if that gives any clues:

use Qt::debug qw( virtual )

-- Richard
_______________________________________________
Kde-perl mailing list
Kde-perl@xxxxxxx
https://mail.kde.org/mailman/listinfo/kde-perl

One
Two
Three
Four
1_1     1_2
2_1     2_2
3_1     3_2
4_1     4_2

Attachment: table_notUpdated.pl
Description: Perl program

Attachment: table_upd.pl
Description: Perl program

_______________________________________________
Kde-perl mailing list
Kde-perl@xxxxxxx
https://mail.kde.org/mailman/listinfo/kde-perl

Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>