Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to create a extendable and draggable QPushButton in the ui?

How to create a extendable and draggable QPushButton in the ui?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
10 Posts 3 Posters 1.7k Views
  • 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.
  • S Offline
    S Offline
    Sherlin N G
    wrote on last edited by
    #1

    How to create a extendable and draggable QPushButton in the ui?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do you mean a QPushButton that you can resize and move around like in Qt Designer ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Sherlin N G
        wrote on last edited by
        #3

        Hi,

        Yes I want to create a QPushButton which can be resizeable and which can move around using mouse (MouseEvents)

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          What's the goal of your application with that button ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Sherlin N G
            wrote on last edited by
            #5

            To create a zone of geometry same as that QPushButton in the backend.Basically I'm giving an option for the user to fix geometry through that button in the UI.

            jsulmJ 1 Reply Last reply
            0
            • S Sherlin N G

              To create a zone of geometry same as that QPushButton in the backend.Basically I'm giving an option for the user to fix geometry through that button in the UI.

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by jsulm
              #6

              @Sherlin-N-G To be honest what you write is really hard to understand: what is backend? Why does the user need to fix the geometry (geometry of what actually?)? What is "zone of geometry"?

              And why do you ask same question twice?
              https://forum.qt.io/topic/87763/custom-qpushbutton-which-can-be-stretchable-and-draggable

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Would you have an edit mode for your application ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Just realised...

                  Isn't this thread a duplicate of this one ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  1
                  • S Offline
                    S Offline
                    Sherlin N G
                    wrote on last edited by
                    #9

                    @SGaist Yes. Once the problem is solved I'll change the status of both.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      Then I'll lock this one to avoid having several parallel threads for the exact same question.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      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