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 689 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 last edited by
    #1

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

    jsulmJ J.HilkJ 2 Replies Last reply
    0
    • D DiGol

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

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on 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
      0
      • D DiGol

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

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on 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.

        jsulmJ 1 Reply Last reply
        0
        • J.HilkJ J.Hilk

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

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on 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.HilkJ 1 Reply Last reply
          0
          • jsulmJ jsulm

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

            J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on 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
            • jsulmJ jsulm

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

              D Offline
              D Offline
              DiGol
              wrote on 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...

              jsulmJ 1 Reply Last reply
              0
              • D DiGol

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

                jsulmJ Online
                jsulmJ Online
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @DiGol Yes, it is possible

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

                1 Reply Last reply
                1

                • Login

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