How to Create a QTapAndHoldGesture & Swipe Gesture in Qt?
-
I have a Widget, in that i am using few textEdits & lineEdits in it. What i required is, when i click on any of the lineEdits, i have to open a new widget. that new widget has to open from the bottom of the screen. (it should look like a separate widget). please help me, how to open a widget from the bottom of the screen,
-
What do you mean "from the bottom of the screen"?
Should it slide in from bottom or just pop-up at the bottom of the screen?
If just pop-up then you need to get "the screen geometry":http://qt-project.org/doc/qt-5/qdesktopwidget.html#screenGeometry and "move":http://qt-project.org/doc/qt-5/qwidget.html#pos-prop new widget to a position that is "new widget" height above the bottom of the screen size in the new widget "showEvent":http://qt-project.org/doc/qt-5/qwidget.html#showEvent -
Hi @Raagini
Do you want to ur new widget slide up from bottom of main widget to a special position?
i see a similar issue in this thread of forum check it may be useful ;)
http://qt-project.org/forums/viewthread/8955
share your experience with me dear :) -
Use QPropertyAnimation and animate the "pos" property as per your need.