[Interest] Persistent Editor keep focus when opening new window
Bill Crocker
william.crocker at analog.com
Sun Feb 24 00:52:22 CET 2013
On 02/23/2013 04:40 PM, Joshua Grauman wrote:
> Hello all,
>
> I have a QTableWidget that uses a custom delegate. When I double click on
> a cell, the editor comes up fine. But then I want to be able to pull up a
> helper widget/window to enter data into the persistent editor. The problem
> is, when I show the new widget/window, the QTableWidget looses focus and
> the persistent editor is destroyed. Does anyone have any idea of how to
> bring up a new widget/window while still editing the persistent editor
> delegate? Thanks.
>
Josh:
I had the same problem, but don't remember which, of the hundreds
of lines of code I have had to write to trick Qt into giving me the
behavior I want, was added to fix this problem.
I think it was this (on the custom editor window) :
Qt::WindowFlags flags = windowFlags();
flags |= Qt::Dialog;
// flags |= Qt::Popup;
setWindowFlags(flags);
setWindowModality(Qt::ApplicationModal);
Bill
> Josh
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
More information about the Interest
mailing list