Python to C++ parent equivalent
I am converting a Python application into C++ to learn the language, and
would like someone to explain what the equivalent of the code below would
look like.
class Dashboard(object):
#--------------------------
# Initialization Method
#--------------------------
def __init__(self, parent = None):
self.parent = parent
#--------------------------
# Select the stack ID
# in the stacked layout
#--------------------------
def _SELECT(self):
self.parent.menuStackedLayout.setCurrentIndex(0)
No comments:
Post a Comment