Hi,
Didn't you think that there might be something wrong in your
implementation? Showing and hiding widgets in setGeometry() seems wrong to
me, and answering your previous questions: have you ever implemented a
custom model? If yes, then did your implementation of data() method in your
custom model look any different from { return QVariant(); } even if you do
not call this method anywhere in your code? That's right! This method is a
part of the model interface, which view classes uses to communicate with
model. So if you are implementing a custom layout the situation looks
exactly the same - QLayout class defines interface for accessing all
layouts by any other class. And if there is a pure virtual method it is a
signal, that you have to implement this method in your subclass as it is
essential and necessary in this communication. So better invent something
more real then "return 0;".And your question about setGeometry() and recursion looks like this: I forgot the semicolon in my C++ code so it does not compile - can GCC developers fix their compiler so it is able to compile my wrong code? BR, Filip On Tue, Aug 5, 2014 at 8:14 AM, Igor Mironchik <[email protected]> wrote: > Hi. > > I found that if in setGeometry() method call hide() or show() on widgets > inside layout then this leads to recursion of layout. > > What do you think on this problem? May be it is good suggestion to Qt > developers to remove this recursion, because of it is sometimes useful to > hide some widgets in layout for this or that reason?! > > Thank you. > > _______________________________________________ > Interest mailing list > [email protected] > http://lists.qt-project.org/mailman/listinfo/interest > >
_______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
