[Interest] Qt5: QProxyStyle destructor is not virtual

Kevin Connor Arpe kevinarpe at gmail.com
Sat May 9 06:26:28 CEST 2015


Hello,

I am new to this mailing list, but I have used Qt (off and on) for many
years.  Also, I am an OK C++ programmer, but great.  (I'm getting a bit out
of date since the C++11 Big Bang.)

Apologies if this is a dumb question, but I noticed that the destructor for
Qt5/QProxyStyle is not virtual.

Can someone help me to understand why?

My naive view: If you are inheriting from a base class with virtual
methods, you need a virtual destructor.

Thanks,
Arpe
Hongkong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150509/f374b105/attachment.html>


More information about the Interest mailing list