c++ - calling const member function -
i have called const member function of object.
i created object on mainwindow, den called get_size() after setting size previously.
calling get_size() method of base class gtk::window.
it gives error: ‘gtk::window’ not accessible base of ‘mainwindow’.
mainwindow inherited gtk::window class
class mainwindow: gtk::window { };
what reason this.
inhertance private
default classes. need derive gtk::window
publicly:
class mainwindow: public gtk::window {
Comments
Post a Comment