Expression qt.qLuaMdiMain refers to the unique instance of class qt.QLuaMdiMain created by function qtide.setup(). There is no such object when the IDE runs in SDI mode.
qt.qLuaMdiMain
qt.QLuaMdiMain
qtide.setup()