Quote Originally Posted by wysota
Why not? You don't have to cast it to QMovie* to use it...
But you will have to implement every method, so there is no benefit in using QMovie.
Qt Code:
  1. #include <iostream>
  2.  
  3. class A
  4. {
  5. public:
  6. void foo() { bar(); }
  7. void bar() { std::cerr << "A::bar()" << std::endl; }
  8. };
  9.  
  10. class B : public A
  11. {
  12. public:
  13. void bar() { std::cerr << "B::bar()" << std::endl; }
  14. };
  15.  
  16. int main()
  17. {
  18. B b;
  19. b.foo();
  20. b.bar();
  21. return 0;
  22. }
To copy to clipboard, switch view to plain text mode