cengkarim
30-03-2013 01:36:51
Hi all,
I used the layout editor to create a new window that contains some controls and used the code generator to generate the class. I have a problem initiating it, my window class is LightsPanel, I used LightsPanel * mLightsPanel = new LightsPanel ( ); but it asserts on debug while creation because the parent window is null. I guess it need the very parent widget of the gui, from where shall I get it? I appreciate your help.
I used the layout editor to create a new window that contains some controls and used the code generator to generate the class. I have a problem initiating it, my window class is LightsPanel, I used LightsPanel * mLightsPanel = new LightsPanel ( ); but it asserts on debug while creation because the parent window is null. I guess it need the very parent widget of the gui, from where shall I get it? I appreciate your help.