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

Qt Designer does not restrict slot for root window

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • Some future release
    • 4.6.1
    • Tools: Designer
    • None
    • Qt SDK 4.6.1, Qt Creator 1.3.1

      Creating a MainWindow using Qt Designer or Qt Creator's Form Editor, then doing "go to slot" on the main window, will create a slot method with automatic naming convention.

      ...but this code would throw a warning during runtime that a matching signal could not be found:

      QMetaObject::connectSlotsByName: No matching signal for on_MainWindow_destroyed()

      Since connectSlotsByName() can only connect slots for child objects, Qt Designer should restrict automatic naming convention for the slot and generate code to manually connect the signal & slot.

      Similar issue: http://ubuntuforums.org/archive/index.php/t-432590.html

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

            kleint Friedemann Kleint
            ceefour Hendy Irawan
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes