[Qt-interest] check if QPaintDevice is QPrinter
Dmitry Teslenko
dteslenko at gmail.com
Wed Sep 8 16:09:07 CEST 2010
Hello!
I want to check if QPaintDevice is QPrinter. In Qt3 there was
bool QPaintDevice::isExtDev () const for that.
In Qt4 there is int QPaintDevice::devType() instead which is undocumented
and returns member of QInternal enum.
Is dynamic_cast my only option?
Thanks.
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
More information about the Qt-interest-old
mailing list