Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-138121

Issues with Slots created in Qt Designer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.9.1
    • Tools: Designer
    • None
    • Microsoft Windows 11 24H2 26100.4349. Microsoft Visual Studio 2022 Build Tools. Qt 6.9.1 for MSVC. Visual Studio Code. Qt C++ extension for VS Code.
    • Windows

    Description

      There are two issues related to slots created in QT Designer.

      1. Creating a new slot in QMainWindow from QT Designer does not update the source code and header file. Manual specification of the slots is required
      2. The slot created in the Designer and then implemented in the source code is executed twice.

      Steps to reproduce:

      1. Create a new QtWidgets project in QtCreator
      2. Edit .ui file in the Qt Designer (standalone)
      3. Create a new slot in QMainWindow
      4. Create a new signal and connect it to the slot
      5. Save the .ui file
      6. Create the slot in the header file
      7. Implement the slot in the source file
      8. Execute a program and fire the signal (in my case, click a button)
      9. Slot is executed twice

      Source code archive is attached to the issue.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            silentstranger Nikita Smirnov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes