Re: Custom Widget in QListWidget doesn't show correct in list
Quote:
Originally Posted by
anda_skoa
A breakpoint on a method is hit every time the method is invoked. Since you have multiple objects of that class, and all their slots are connected, your breakpoint is hit once per instance.
So I am clear on what you wrote, the "method" referring to is which one? The method which seeks to update the label Controls::WriteInfoNumber is hit once for each item in the list. If there are more than one item in the list, then there are as many hits to the breakpoint in that method.
Quote:
So does this value change over time?
If not, why use a signal and not just imply pass the value via a setter or constructor argument?
Cheers,
_
The value, once assigned is to be static for the remainder of the life of the object. Going to consider what was suggested.
Thanks very much.
Oh BTW your Anna Fenninger is some awesome skier:eek:
Re: Custom Widget in QListWidget doesn't show correct in list
Quote:
Originally Posted by
astodolski
So I am clear on what you wrote, the "method" referring to is which one?
The slot, WriteInfoNumber
Quote:
Originally Posted by
astodolski
The method which seeks to update the label Controls::WriteInfoNumber is hit once for each item in the list. If there are more than one item in the list, then there are as many hits to the breakpoint in that method.
Exactly!
The breakpoint can not distinguish between instances of the same class, so it is hit for every single one. Obviously "this" will be different.
Quote:
Originally Posted by
astodolski
Oh BTW your Anna Fenninger is some awesome skier:eek:
:D
Cheers,
_