[Qt-interest] Hide rather than quit on close window event

Gopalakrishna Bhat gopalakbhat at gmail.com
Thu Oct 28 13:36:52 CEST 2010


Hi,

Try using QShortCut to override the default shortcut i.e alt-F4 in
your application.

Catching the activated() signal might help. btw I have not tried it out.

With regards,
Gopalakrishna

On Thu, Oct 28, 2010 at 4:56 PM, Aaron Lewis <the.warl0ck.1989 at gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>        Was it possible to achieve this:
>
>        On specify key combinations like ^Q or ALT_F4 triggered , call hide() ,
> without re-implementation of closeEvent() ?
>
>        Tried a keyPressEvent with Qt::Key_Close , seems not very feasible ,
> anybody got a better idea ?
>
>        Thanks !
>
> - --
> Best Regards,
> Aaron Lewis - PGP: 0xDFE6C29E
> Key Server: http://keyserver.veridis.com
> Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.16 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQIcBAEBAgAGBQJMyV3kAAoJECSSp9Df5sKejBQP/277q1lRjgtxihkJhbk1/u1j
> Q8hSMYQyYR60+Fn04AGPW5ZRCSdz/TBuXEMn1I+rtE20jCap9sKTaE8W89hqwuVV
> Hj0HrKpwxMBdabG9GUQmlG7FxAzE6UqISVzq07CeiLxa/XHLC9mejZGQx/3K6xcI
> Gv25ikOlCGJKn9mYzLfo1h+rR0hCcp8jAL11CERsaY6DuofXx1CJY4WEqWeaRzsy
> I3xkZO2xN3V1Iv083iB6T5p+fpfztLjA5CRM96tfhYgoUEHP2+31zupg0ashX8T7
> 2mdpTXGcgGo/f0oFnWy0SbLvnqLT15hEz165VkQh+YpgZpX52RfMMi0NRXzV84M9
> A1N5scMAquDdsYQTJ2PQUDiByYqivJbZq74VFMR4qZWFuLLKf1AGDnnoy583FuiD
> UYnoyTR3ssYpKNx3Ayiw8kUAjMNTI7MSkOkTBmDMoLtZOqAPDaY02CXKU+jR2d2V
> FjRY35dI09WBpNoksBSRLnlkLonn/cSo3s0H8+EGt4mFH1xpuZ+417BUJ3v7pzmm
> Sw0JCKvx296BLfvZqvQQ05XYd4rHgsUirWLEHEkCI9YKmUyBq+cLJSIlX5c7Ud2P
> Nyz9QBpTkUcUZinmOgb75akg2+Nc/4RtugWrFpVBct7P6WKX2opG5iJQ0aAuGsR3
> MtxNvOJlXsMFLxcbFywd
> =bl28
> -----END PGP SIGNATURE-----
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



-- 
My blog http://gkbhat.blogspot.com




More information about the Qt-interest-old mailing list