I’m using Qt 4.7.0 (32 bit) on Windows(mingw32).
The app is crashing when setVisible(),setDisabled(),hide() and show() are called. Official documentation, forums and google haven’t helped so far. The QLineEdit variable is declared in the xml (passwordEdit).
The crash occurs only in debug mode, not in release mode.
ui->passwordEdit->setVisible(false);
The app was crashing because I was updating widgets’ visibility and other properties from another thread. I didn’t realize you have to do it from within the GUI thread. Using postEvent solved the problem.