Malutek
13th January 2013, 01:38
Hello,
I've been struggling for quite some time with this problem, and unfortunately Google failed to help me find a solution.
I want to design a window with multiple QToolBars on top of the window. These QToolBars (currently have 5 of them) are supposed to be in 2 rows. The problem is that in QtDesigner it looks good, I have them grouped into 2 rows, but when I compile it, it all messes up. It put last 4 toolbars in second row, and only first toolbar is in first row. I've been reading about using:
QMainWindow::addToolBarBreak ( Qt::ToolBarArea area = Qt::TopToolBarArea );
but the problem is that I'm using QtDesigner, so I can't really use that (or is there some kind of functionality in QtDesigner like 'Cutomize Code' similiar to what's implemented in Netbeans?). Thanks in advance for your help, and sorry for me average English, still learning.
I've been struggling for quite some time with this problem, and unfortunately Google failed to help me find a solution.
I want to design a window with multiple QToolBars on top of the window. These QToolBars (currently have 5 of them) are supposed to be in 2 rows. The problem is that in QtDesigner it looks good, I have them grouped into 2 rows, but when I compile it, it all messes up. It put last 4 toolbars in second row, and only first toolbar is in first row. I've been reading about using:
QMainWindow::addToolBarBreak ( Qt::ToolBarArea area = Qt::TopToolBarArea );
but the problem is that I'm using QtDesigner, so I can't really use that (or is there some kind of functionality in QtDesigner like 'Cutomize Code' similiar to what's implemented in Netbeans?). Thanks in advance for your help, and sorry for me average English, still learning.