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

__init__ question

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 476 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.
  • J Offline
    J Offline
    jimmyvegas29
    wrote on last edited by
    #1

    When i create a .ui and convert it to py it does not contain a def init but all the examples i see on youtube for pyqt stuff everyone uses it, can someone explain why they use it, but dosnt seem to be required to run the qt app?

    1 Reply Last reply
    0
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by
      #2

      there are two ways to use forms:

      The first way is to run the setupUi() method on a target widget. The other way is to subclass the Ui_xxxx class itself. You're probably seeing examples of the second method where the subclass has its own init() method.

      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