Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Constructor
Forum Updated to NodeBB v4.3 + New Features

Constructor

Scheduled Pinned Locked Moved Unsolved Qt for Python
7 Posts 3 Posters 673 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.
  • D Offline
    D Offline
    DiGol
    wrote on 24 Mar 2021, 06:07 last edited by
    #1

    Does anyone know if it is possible to make a constructor in PyQt, for example, like Figma?

    J J 2 Replies Last reply 24 Mar 2021, 06:08
    0
    • D DiGol
      24 Mar 2021, 06:07

      Does anyone know if it is possible to make a constructor in PyQt, for example, like Figma?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 24 Mar 2021, 06:08 last edited by
      #2

      @DiGol What exactly do you mean by "constructor"? What should it do?

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

      D 1 Reply Last reply 24 Mar 2021, 06:34
      0
      • D DiGol
        24 Mar 2021, 06:07

        Does anyone know if it is possible to make a constructor in PyQt, for example, like Figma?

        J Offline
        J Offline
        J.Hilk
        Moderators
        wrote on 24 Mar 2021, 06:14 last edited by
        #3

        @DiGol the Python equivalent to a Constructor, as in a function guaranteed to be invoked after class initialization, is __init__


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        J 1 Reply Last reply 24 Mar 2021, 06:21
        0
        • J J.Hilk
          24 Mar 2021, 06:14

          @DiGol the Python equivalent to a Constructor, as in a function guaranteed to be invoked after class initialization, is __init__

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 24 Mar 2021, 06:21 last edited by
          #4

          @J-Hilk I doubt that was the question. A python constructor is not "for example, like Figma" :-)

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

          J 1 Reply Last reply 24 Mar 2021, 06:22
          0
          • J jsulm
            24 Mar 2021, 06:21

            @J-Hilk I doubt that was the question. A python constructor is not "for example, like Figma" :-)

            J Offline
            J Offline
            J.Hilk
            Moderators
            wrote on 24 Mar 2021, 06:22 last edited by
            #5

            @jsulm I expect the op to edit his post to contain spam/links, sometime soon anyway


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            1 Reply Last reply
            1
            • J jsulm
              24 Mar 2021, 06:08

              @DiGol What exactly do you mean by "constructor"? What should it do?

              D Offline
              D Offline
              DiGol
              wrote on 24 Mar 2021, 06:34 last edited by
              #6

              @jsulm So that the user can create shapes, text, add images, etc. and change their properties, such as color, size, border, shadow...

              J 1 Reply Last reply 24 Mar 2021, 06:34
              0
              • D DiGol
                24 Mar 2021, 06:34

                @jsulm So that the user can create shapes, text, add images, etc. and change their properties, such as color, size, border, shadow...

                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 24 Mar 2021, 06:34 last edited by
                #7

                @DiGol Yes, it is possible

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

                1 Reply Last reply
                1

                1/7

                24 Mar 2021, 06:07

                • Login

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