Unsolved Toolbar spacer does not expand to the right corner
-
@TommyTLC
Ok so its not hidden by user code.
Could you try a smaller minimum and see like
spacer->setMinimumWidth(200);I know its not the goal but just to see if it still happens.
-
@TommyTLC said in Toolbar spacer does not expand to the right corner:
in the >> I only see my m_aboutAction
you do not see the style combo either?
Did you overload
resizeEvent
?Does the "Configuration" label on the left have something special?
-
@mrjj said in Toolbar spacer does not expand to the right corner:
Ok so its not hidden by user code.
If it goes into >> then it will be hidden. I'm not sure this test is conclusive
-
@mrjj By changing the minimum size I see the spacer:
But the items to the right can still be hidden by resizing the window:
-
@VRonin Correct, the only thing I see by clicking the ">>" is the m_aboutAction.
The configuration label is an action. When clicked it generates a dialog you can interact with.
I am not sure what overlading the resizeEvent means. -
Hi
- I am not sure what overlading the resizeEvent means.
Like for MainWindow, you have that function implemented in your code.
I have a feeling it the
setMinimumWidth that is the culprit of this. -
@mrjj Getting rid of the minimumWidth only leaves a small gap between the items in the toolBar. I don’t know what else I could try :(
-
@TommyTLC
Ok so it dont grow ?Hmm. What version of Qt are you using ?
the code VRonin works perfectly in 5.15
But you get another result ?
-
@mrjj I’m working on the 5.15. His code DOES work perfectly, but for some reasons it has issues with my project. The spacer does not push the items all the way to the right. That’s why I was trying to set its minimumWidth.
-
Hi,
Then you should start by using @VRonin's code in place of yours. Once you confirm it's working, you can step by step replace the widgets with the ones you are using until it breaks again.