1

Topic: How to force to "extend" corner widget?

There is such widget at which a property horizontal policy: Expanded which I interpose as corner in menubar, at which property horizontal policy: Minimum ui-> menuBar-> setCornerWidget (new corner_widget (this)); It turns out not beautifully... Or, so if to expand a window: Or so if to tighten: And it would would be desirable that also the menu was visible, and  was expanded on all accessible free area. It is possible somehow to force to do it so? The project code: http://www.codijy.com/4qt/QtTest.zip

2

Re: How to force to "extend" corner widget?

Hello, nen777w, you wrote: N> And it would would be desirable that also the menu was visible, and  was expanded on all accessible free area. N> it is possible somehow to force to do it so? N> the project code: http://www.codijy.com/4qt/QtTest.zip QSizePolicy:: MinimumExpanding?

3

Re: How to force to "extend" corner widget?

N>> the project code: http://www.codijy.com/4qt/QtTest.zip __> QSizePolicy:: MinimumExpanding? Is not present did not guess, it does not work so.

4

Re: How to force to "extend" corner widget?

Hello, nen777w, you wrote: N> And it would would be desirable that also the menu was visible, and  was expanded on all accessible free area. N> it is possible somehow to force to do it so? In such type, perhaps, in any way. Judging by source codes, QMenuBar controls korner-vidzhetom without , calculating its geometry immediately. It is possible to allocate menuBar and korner-vidzhet on own , all will be expanded as it is necessary. In this case side toolbars appear on each side the menu, instead of from below as would be at standard setMenuBar. To look it will be very clumsy smile

5

Re: How to force to "extend" corner widget?

Hello, Lexerys, you wrote: L> Hello, nen777w, you wrote: N>> And it would would be desirable that also the menu was visible, and  was expanded on all accessible free area. N>> it is possible somehow to force to do it so? L> In such type, perhaps, in any way. Judging by source codes, QMenuBar controls korner-vidzhetom without , calculating its geometry immediately. L> it is possible to allocate menuBar and korner-vidzhet on own , all will be expanded as it is necessary. L> In this case side toolbars appear on each side the menu, instead of from below as would be at standard setMenuBar. To look Thanks will be very clumsy smile. Probably  again to climb in code Qt or that that another to invent.

6

Re: How to force to "extend" corner widget?

It is possible to try to make so: - to thrust the menu with  in separate ; - received  to thrust in empty  in quality korner-vidzheta.

7

Re: How to force to "extend" corner widget?

L> It is possible to try to make so: L> - to thrust the menu with  in separate ; L> - received  to thrust in empty  in quality korner-vidzheta. It did not turn out. Yes I already actually in Qt corrected QMenuBarPrivate:: updateGeometries () well and calculated menu area on taking at upper Actions them QRect.