Hi,
I have a problem that looks pretty strange to me.
I'm making an application that uses gui. I have a QStackedWidget somewhere where I am going to use some other widgets, so I made my custom widget that is defaultWidget. This was made very simply by adding a Qt c++ form class using the QtCreator so nothing should be wrong with it.
The only thing I've done is that I put a QLabel on the ui (using the built-in Designer) and I included the header into the mainwindow.h
and it crashes like this. I don't even have an instance of that defaultWidget. I just added the
#include "metawidgets/defaultwidget.h"
line into the mainwindow.h
and it crashes with the named code. Why? What did I do wrong? I already have other classes added with the very same method and they don't crash. What is happening? I'm really confused, I have no idea how to search for the bug.
I attached a small code where I tried to remake the problem. This one works fine however this one looks the VERY same as the big one (except for the miss of all the other work from the previus week...). but really. only this simple thing causes the error that I add the 3 new files to the project and add the header to the mainwindow.h. If I comment out this line and remove the 3 files from the project everything works fine but it is impossible to move on with working.
Bookmarks