I use a form with several overlapping Qpanels on it. How can I bring a given Qpanel to the foreground, i.e. have it appear in front of the others (when it is clicked, for instance).
Just an idea: When it is clicked, set a flag in panel.tag and on the OnPaint event handler of QForm, check this flag to know which panel is the top one and draw it latest.