Dialog.ui not opening when a variable is declared in Dialog.h
-
In my qt c++ aplication I have 2 cpp files namely Dilog.cpp and MianWindow.Cpp! An interface(Dialog.ui) is opened when I click a button in MainWindow.ui! But when I declare a variable(I declared both as private and public) in dialog.h and click the button the Application stops working! When I remove the varaible declared and click the button the apllication works fine! What can be the reason for this?
-
Hi
What kind of vairable ?
It sounds very close to impossible what you say :)
Except if its a pointer. then u can crash the app :) -
jsulm Lifetime Qt Championreplied to Lasith on 7 Dec 2017, 07:45 last edited by jsulm 12 Jul 2017, 07:50
@Lasith Sorry, but from such a description it is simply impossible to say what is wrong. Why don't you post your code?
"stops working" - what does this mean? What EXACTLY stops working? -
@Lasith
Oh, thats a classic :)
5/5