Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to Create a QTapAndHoldGesture & Swipe Gesture in Qt?
Forum Updated to NodeBB v4.3 + New Features

How to Create a QTapAndHoldGesture & Swipe Gesture in Qt?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Raagini
    wrote on last edited by
    #1

    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,

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Raagini
        wrote on last edited by
        #3

        I mean that the new widget should slide in from the bottom of the screen...

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jafarabadi.qt
          wrote on last edited by
          #4

          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 :)

          1 Reply Last reply
          0
          • p3c0P Offline
            p3c0P Offline
            p3c0
            Moderators
            wrote on last edited by
            #5

            Use QPropertyAnimation and animate the "pos" property as per your need.

            157

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved