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 can i make a button like scratch's block
Qt 6.11 is out! See what's new in the release blog

How can i make a button like scratch's block

Scheduled Pinned Locked Moved General and Desktop
drag and dropqtexteditqpushbutton
5 Posts 2 Posters 2.0k Views 2 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
    skeptical
    wrote on last edited by skeptical
    #1

    I want to make a button that can be draggable and also receive inputs maybe with a qtextedit and also react to clic events like a push button, somehow like the blocks of scratch of MIT

    thanks in advance.

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

      Hi and welcome to devnet,

      Do you mean something like the Notes application on OS X ?

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

      S 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Do you mean something like the Notes application on OS X ?

        S Offline
        S Offline
        skeptical
        wrote on last edited by
        #3

        @SGaist said:

        Notes application on OS X

        Hi, thanks
        What i want is like the blocks of scratch

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

          Ok,

          Then I see two solutions: either QtQuick or the Graphics View framework

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

          S 1 Reply Last reply
          0
          • SGaistS SGaist

            Ok,

            Then I see two solutions: either QtQuick or the Graphics View framework

            S Offline
            S Offline
            skeptical
            wrote on last edited by
            #5

            @SGaist thanks for answering my question, i will learn qt quick to do this

            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