I have created a custom MainWindow from QMainWindow and a custom widget from QGraphicsView. I'm trying to use a QGridLayout in MainWindow and place my custom widget in it. However, when I use the following in the MainWindow constructor:
Layout = new QGridLayout();
Layout->addWidget(CktArea);
setLayout(Layout);
The widget does not seem to appear anywhere.
If I also include at the botton of the previous code:
CktArea->show();
The widget shows up, but in another window that has a different menu bar than the MainWindow. Also, if I wanted to hide a widget, how would that work as well?
Thank you!
Bookmarks