![]() ![]()
|
I am currently trying to build a UI for a KDE app with two layouts, one nested within the other. Here's the code for mainwindow.cpp:
When I try to compile I get this error:
I have reviewed the Qt documentation and referred to a textbook I have and as far as I can tell I've done the layout's correctly, any ideas? |
![]() Registered Member ![]()
|
Hi,
I don't see where layout is defined. The error message says that layout is a wrong type. Is it a member of mainWindow? cu André |
![]() ![]()
|
Hi André, pointing out it was the wrong layout type made me think and I have spotted my error now. It was something I should have seen before but didn't. Line 26 was trying to set a layout that didn't exist (renamed from a previous version of my code!). Thanks for the kick I needed. |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft