Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-6494

accepted(), rejected(), and finished() slots for dialogs misfire

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • Qt Creator 2.3.1
    • Widget Designer
    • None
    • Windows XP Home SP3
      AMD Athlon 64 X2 Dual
      2GB RAM

      MinGW AND VS2008
      Single-clicks do work on other applications on my system.

    Description

      Create a new project. Add a button. Create a new dialog form/class called "Dialog". Add "dialog.h" to the includes for the Main Window. Make the button open the dialog, by choosing "Go To Slot" for the "clicked" slot in the form editor, creating Dialog d; and do its exec(). So far, so good. All standard stuff so far. Open the dialog in the form editor, and choose "Go To Slot" for the accepted(), rejected() and finished() slots. Qt Creator creates new routines in the editor as expected. Create message boxes in them. Compile and run the app. Click the button. Choose OK and/or Cancel. The message boxes never get displayed. Instead, there are warnings in the application output window:

      QMetaObject::connectSlotsByName: No matching signal for on_Dialog_accepted()
      QMetaObject::connectSlotsByName: No matching signal for on_Dialog_rejected()
      QMetaObject::connectSlotsByName: No matching signal for on_Dialog_finished(int)

      The same thing happens on both MinGW Debug and VS2008 Release builds. Saving everything, closing it all, and Rebuild All does not fix it. Routines created by the "Go To Slot" dialog do not generally misfire.

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            codelurker Code Lurker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes