Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. How to suggest improvements to the code?
Qt 6.12 LTS is out! See what's new in the release blog

How to suggest improvements to the code?

Scheduled Pinned Locked Moved Unsolved Qt for Python
3 Posts 3 Posters 713 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.
  • T Offline
    T Offline
    Tyson1123
    wrote on last edited by
    #1

    How do I suggest changes or improvements to the code for PyQt5? I'm currently making a program and would like to call multiple methods subsequently without making new lines like so:

    widget.method1().method2().method3()
    

    It's really easy to implement this but I don't know where to suggest this improvement. Anyone have any suggestions?

    jsulmJ JonBJ 2 Replies Last reply
    0
    • T Tyson1123

      How do I suggest changes or improvements to the code for PyQt5? I'm currently making a program and would like to call multiple methods subsequently without making new lines like so:

      widget.method1().method2().method3()
      

      It's really easy to implement this but I don't know where to suggest this improvement. Anyone have any suggestions?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Tyson1123 said in How to suggest improvements to the code?:

      widget.method1().method2().method3()

      This would only work if method1 and method2 return "self".

      For reporting bugs and change requests: https://wiki.qt.io/Qt_for_Python/Reporting_Bugs

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

      1 Reply Last reply
      0
      • T Tyson1123

        How do I suggest changes or improvements to the code for PyQt5? I'm currently making a program and would like to call multiple methods subsequently without making new lines like so:

        widget.method1().method2().method3()
        

        It's really easy to implement this but I don't know where to suggest this improvement. Anyone have any suggestions?

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @Tyson1123 said in How to suggest improvements to the code?:

        widget.method1().method2().method3()

        It's really easy to implement this but I don't know where to suggest this improvement

        Hello and welcome. No, it is not "really easy" to implement this. It would require changing the return type of each QWidget method to return the widget/self instance. It is common to "chain" method calls in this way in, say, JavaScript or jQuery, but not at all so in C++ or Python. It is not going to happen in Qt code, we are quite happy with three separate statements for the above, as has always been the case.

        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
        • Unsolved