Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Issue with New Signal/Slot mechanism In mingw (Qt5.2)
Qt 6.11 is out! See what's new in the release blog

Issue with New Signal/Slot mechanism In mingw (Qt5.2)

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alizadeh91
    wrote on last edited by
    #1

    I have downloaded Qt5.2 mingw32 with opengl support. When i compile my project with this new version i get following error:
    @
    error: no matching function for call to
    mainwindow::connect(dialog*&, void (Dialog::*)(bool),dialog::on_btnExport_clicked()::__lambda0)
    });
    ^
    @
    Here is where i have defined my signal/slot connection:
    @
    connect(dialog, &Dialog::progressChanged,
    [=](bool started)
    {
    if (started)
    {
    // do something
    }
    else
    {
    // do something else!
    }
    });
    @
    This code was working fine with "Qt5.1 msvc 2010 opengl".
    How can i solve this issue?

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      What is the signal signature?
      Have you enabled c++11 support in your project (CONFIG += c++11)? MSVC doesn't support language version selection but MinGW does and is set to C++03 by default.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved