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?
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Solved Mobile and Embedded
10 Posts 3 Posters 1.8k 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.
  • S Offline
    S Offline
    Sherlin N G
    wrote on 13 Feb 2018, 12:52 last edited by
    #1

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

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 14 Feb 2018, 19:17 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 15 Feb 2018, 04:07 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
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 15 Feb 2018, 23:06 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 20 Feb 2018, 07:05 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.

            J 1 Reply Last reply 20 Feb 2018, 07:53
            0
            • S Sherlin N G
              20 Feb 2018, 07:05

              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.

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 20 Feb 2018, 07:53 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
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 20 Feb 2018, 09:02 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
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 20 Feb 2018, 09:06 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 20 Feb 2018, 09:19 last edited by
                    #9

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

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 20 Feb 2018, 11:04 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

                      2/10

                      14 Feb 2018, 19:17

                      topic:navigator.unread, 8
                      • Login

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