[Qt-interest] how to access the Member Variable of MainWindow from another class?
Konstantin Tokarev
annulen at yandex.ru
Tue Apr 12 11:47:48 CEST 2011
12.04.2011, 13:43, "Muthulingam Ammaiappan" <muthulingam.a at gmail.com>:
> Hi Friends,
>
> i am facing the following problem...
>
> how i can access the variable which is declared in the mainwindow class from some other class constructor?
It's generic C++ question which has nothing to do with Qt. You just need to have pointer or reference to MainWindow object to access it's public members inside your constructor (i.e., pass it as constructor parameter)
--
Regards,
Konstantin
More information about the Qt-interest-old
mailing list