Hi,
I was faced with a very strange behavior. Not critical as I can do it other way but I would like to know why it happens.
I have a qt designer class that I use as a modeless dialog In a mainwindow application.
If i defined in my mainwindow.h a pointer to a QTimer variable my application always gives segfault at the call of the modeless dialog show(), regardless i do not even use or mention my QTimer pointer anywhere else in the program. Any no modeless dialogs work just fine.
For my application to work I only need to comment the Qtimer *timer declaration in mainwindow.h
I have no problem if i just define the timer in any of the mainwindow functions in mainwindow.cpp, and that's why this problem is not critical, but for me, at least, is very strange. It took me a large amount of hours to discovered that the segfault was due to the fact that I had a QTimer pointer defined in mainwindow.h as I couldn't spot any relation with that declaration, not even used anywhere else, and the modeless dialog.
kind regards,
Bookmarks