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

TextFinder tutorial: Designer "Go to Slot > clicked()" generates error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 2.1.0
    • Qt Creator 2.0.0
    • Documentation
    • None
    • Windows XP

    Description

      This from the TextFinder tutorial:

      To call a find function when users press the Find button, you use the Qt signals and slots mechanism. A signal is emitted when a particular event occurs and a slot is a function that is called in response to a particular signal. Qt widgets have predefined signals and slots that you can use directly from Qt Designer. To add a slot for the find function:
      Right-click the Find button to open a context-menu.
      Select Go to Slot > clicked(), and then select OK.
      A private slot, on_findButton_clicked(), is added to the header file, textfinder.h and a private function, TextFinder::on_findButton_clicked(), is added to the source file, textfinder.cpp.

      However when I click on OK I get an error, no file matching ui_textfinder.h could be found.

      Got around it by manually adding the necessary line in textfinder.h

      Attachments

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

        Activity

          People

            dt Daniel Teske
            jallin JAllin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes