0

enter image description hereIn my MainWindow ,menuBar contents and toolBar contents are few that it will occupy only a small portion in the left side off the main window and the rest of the portion is left empty. Im having a info frame with some widgets in it in the right side of the centerwidget.

my question is that can i use the the info frame from the menu bar space itself as menubar and toolbar can occupy only left portion of the mainwindow and i can use the entire right portion for info frame..?

Wagmare
  • 1,354
  • 1
  • 24
  • 58
  • Can you please make a picture of what you want to make sure we understand you correctly? – Pavel Strakhov Jun 27 '13 at 08:32
  • i have attached the image with my prev post ..as you can see on the pic the menubar and toolbar occupying less space. is it possible for me to move the right side frame (TrackInformation Window) above to occupy the empty space left by menu bar and tool bar at right side .. – Wagmare Jun 27 '13 at 10:08

1 Answers1

2

You can't use that space through layout because this space is already taken by the main menu and the toolbar. There is no option to put something in this space.

But you can add a main window's child without putting it in any layout. It will be shown above all layed out children. But you will have to calculate and adjust size and position of this widget manually.

For example, add the following code to the main window's constructor:

QPushButton* b = new QPushButton("TEST", this);
b->move(200, 0);

It looks like this:

screenshot

Pavel Strakhov
  • 39,123
  • 5
  • 88
  • 127