It works.. thanks jacek!
this is what I added to the constructor of the main window
map = new Map(ui.frameMain);
m_layoutMain->addWidget(map);
ui.frameMain->setLayout(m_layoutMain);
map = new Map(ui.frameMain);
m_layoutMain = new QHBoxLayout;
m_layoutMain->addWidget(map);
ui.frameMain->setLayout(m_layoutMain);
To copy to clipboard, switch view to plain text mode
I still got one question though.. is it possible to access layouts that were create using QtDesigner? I added one to the main form but after using this code
ui.frameMain->layout()->addWidget(map);
ui.frameMain->layout()->addWidget(map);
To copy to clipboard, switch view to plain text mode
the application crashes at creation.
Again.. thanks in advance
Bookmarks