AnyEvent::Impl::Qt(3)
π AnyEvent::Impl::Qt
okay bestie, so this is the AnyEvent adaptor for Qt β yes, that Qt, the big fancy GUI one π and it lives in AnyEvent::Impl::Qt(3), in case you were wondering where the manual name went (it's right here, bestie, folded in like a lil name tag π«Ά).
β¨ SYNOPSIS β¨
use AnyEvent;
use Qt;
my $app = Qt::Application \@ARGV; # REQUIRED!
# this module gets loaded automatically as required
like, that # REQUIRED! is not a suggestion, bestie π please respect it.
πΈ DESCRIPTION πΈ
So this module provides transparent support for AnyEvent. The vibe is: you literally don't have to do anything to make Qt work with AnyEvent π except β and this is the important part β loading Qt before creating the first AnyEvent watcher, and instantiating the Qt::Application object. That's it. That's the whole ritual π―οΈβ¨
Failing to do that will result in segfaults π not a cute little error message, not a warning, a whole crash. Which is exactly why this model doesn't work as the default model, and it will not be autoprobed. (But it will be autodetected when the main program uses Qt, so like, it's got good instincts π.)
Qt suffers from the same limitations as Event::Lib and Tk, and the workaround is also the same β duplicating file descriptors π iykyk.
Qt doesn't support idle events, so they are being emulated π§ (we're doing our best, okay).
β οΈ Avoid Qt if you can. That's not me being dramatic, that's the manpage being dramatic. But also me. Seriously though β avoid Qt if you can. π
π¦ SEE ALSO π¦
AnyEventβ the main character, obviously πQtβ the one with the limitations π
π AUTHOR π
Marc Lehmann <schmorp@schmorp.de>
http://anyevent.schmorp.de
shoutout to Marc for writing this, fr fr π«Ά
okay so that's the whole thing!! and a lil sign-off for the footer bits: this page comes from perl v5.42.0, dated 2019-09-18, and it's filed under AnyEvent::Impl::Qt(3) β so if you need to cite it, that's the β¨iconicβ¨ source and version. bye bestie, go instantiate that Qt::Application object before you do literally anything else πππ¦
π¦ where this page comes from
- opensuse-leap 16.0: perl-AnyEvent 7.17-160000.2.2 Β· GPL-1.0-or-later OR Artistic-1.0
- opensuse-leap 16.0: perl-AnyEvent 7.17-160000.2.2 Β· GPL-1.0-or-later OR Artistic-1.0
- opensuse-leap 16.0: perl-AnyEvent 7.17-160000.2.2 Β· GPL-1.0-or-later OR Artistic-1.0
- opensuse-leap 16.0: perl-AnyEvent 7.17-160000.2.2 Β· GPL-1.0-or-later OR Artistic-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms