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

Design mode: not possible to connect Spin Box with LCD Number

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.3.2
    • None
    • Windows

    Description

      I create a Qt Widgets Application with Generate form checkbox activated, and I select the Desktop Qt 6.3.2 MinGW 64-bit kit. In the Design mode I add a Spin Box and a LCD Number. In the Signals and Slots Editor I add the connection Sender = spinBox, Signal = valueChanged(int), Receiver = lcdNumber and Slot = display(int). When I build the project, I will receive the error message

      C:\C++\build-projekt06-Desktop_Qt_6_3_2_MinGW_64_bit-Debug\ui_mainwindow.h:55: error: no matching function for call to 'QObject::connect(QSpinBox*&, void (QSpinBox::*)(int), QLCDNumber*&, <unresolved overloaded function type>)'
      In file included from ..\projekt06\mainwindow.cpp:2:
      ./ui_mainwindow.h: In member function 'void Ui_MainWindow::setupUi(QMainWindow*)':
      ./ui_mainwindow.h:55:25: error: no matching function for call to 'QObject::connect(QSpinBox*&, void (QSpinBox::*)(int), QLCDNumber*&, <unresolved overloaded function type>)'
         55 |         QObject::connect(spinBox, &QSpinBox::valueChanged, lcdNumber, &QLCDNumber::display);
            |         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      I expect that a correct ui_mainwindow.h will be generated.

      Attachments

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

        Activity

          People

            jkobus Jarek Kobus
            johannesfluegel Johannes Flügel
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes