Home > Mobile >  QT how to hide the toolbar
QT how to hide the toolbar

Time:09-16

Question 1: software starts, the toolbar is displayed in the interface of the far left, when the mouse from the diverse toolbar toolbar automatically hide, when the mouse moves to the position on the left side of the toolbar, the toolbar will appear again, bosses how to implement, which controls with
Question 2: how to realize the toolbar center shows that the window size

CodePudding user response:

Nothing controls can do it directly, I don't know, since the draw, you may need a little things, such as setting up the form attribute is Qt: : Tool, this window will not display in the task bar, in the use of the focusIn, and focusOut events, can complete the effect you say

CodePudding user response:

The form attribute? Which forms controls can be set to Qt: : Tool?

CodePudding user response:

Qt most controls are inherited from QWidget, form QWidget properties, of course, I mean, now that without this control, why don't you realize a yourself?

CodePudding user response:

Event filters enter to leave when the mouse on the toolbar displayed leave the area when hidden

CodePudding user response:

reference 4 floor Z_ motuo response:
event filter enter to leave when the mouse on the toolbar displayed leave the area when hidden
I made, but it shows when the mouse moved to the window, want is to show when the mouse moved to the toolbar area, how to debug

CodePudding user response:

Eventfilters use this

CodePudding user response:

Rewrite several mouse to move the event functions
  •  Tags:  
  • Qt
  • Related