Home > Back-end >  QT how to implement a dialog box as shown?
QT how to implement a dialog box as shown?

Time:05-14


As shown in figure in, click on the button, from sliding out dialog box on the right side, close to the right after disappear, how to use QT implement, please?

CodePudding user response:

QTabWidget tabs and QSS stylesheet can be realized, hope to adopt, can focus on direct messages I don't understand,

CodePudding user response:

Simply using QML
Complex in c + + part of the properties of the animation + animation in parallel,
First store window on the right side of the rect and two parameters in normal display the rect, animation set attribute is' pos' or 'geometry' (see requirements), and then start and end values of initialization properties animation, set the animation direction to positive, from the button if you want to zoom in to the normal position and shrink back button with 'geometry',
Window position in the dialog box on the right side, point button to trigger the animation, can see the effect of display,
Set can be seen to close the results animation direction,

If is animation, to stop the animation, then direction reverse, restart, (if the animation is unusual, even stop reset after the start value to end, then start again after the animation at the end of the normal setting start/end value to the most began to save the two parameters,)
  • Related