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

Popular posts from this blog

jQuery clickable div with working mailto link inside -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -