I have solved this problem. The slow speed is due to creating widgets without parents before attaching them to layouts, e.g.
The speed difference is huge. Also if you do too many constructions without parents, Qt seems to bog down and freeze up due perhaps to some resource issue. The surprising thing here is that many Qt examples create widgets without parents for use in layouts. This is a definite no-no! I'm going back and fixing this everywhere in my code. Things are going much faster now.
The speed difference is huge. Also if you do too many constructions without parents, Qt seems to bog down and freeze up due perhaps to some resource issue. The surprising thing here is that many Qt examples create widgets without parents for use in layouts. This is a definite no-no! I'm going back and fixing this everywhere in my code. Things are going much faster now.