you should not pass this as a parent to hbox layout.. see the comment in your code below Originally Posted by cpsmusic I tried the following: Qt Code: Switch view QHBoxLayout *hbl = new QHBoxLayout(this);//REMOVE "this" just use - new QHBoxLayout(); QHBoxLayout *hbl = new QHBoxLayout(this);//REMOVE "this" just use - new QHBoxLayout(); To copy to clipboard, switch view to plain text mode however I'm getting the following error: QLayout: Attempting to add QLayout "" to QFileDialog "QFileDialog", which already has a layout
QHBoxLayout *hbl = new QHBoxLayout(this);//REMOVE "this" just use - new QHBoxLayout();
Frameless Window Helper
Forum Rules
Bookmarks