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. [Solved] Use of signal-slot connect in Windows 10
QtWS25 Last Chance

[Solved] Use of signal-slot connect in Windows 10

Scheduled Pinned Locked Moved General and Desktop
windows 10signal-slotconnectconnect failureqt 5.4.1
24 Posts 4 Posters 11.5k Views
  • 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.
  • M mrjj
    19 Oct 2015, 18:54

    May I humbly suggest to follow your signature ? ;)

    K Offline
    K Offline
    koahnig
    wrote on 20 Oct 2015, 07:49 last edited by
    #15

    @mrjj
    Actually, my initial problem is not solved. ;)
    The warning at wrong connects still seems to be gone. Which might be a either a problem with my installation or a bug in Qt.

    Vote the answer(s) that helped you to solve your issue(s)

    M J 2 Replies Last reply 20 Oct 2015, 07:52
    0
    • K koahnig
      20 Oct 2015, 07:49

      @mrjj
      Actually, my initial problem is not solved. ;)
      The warning at wrong connects still seems to be gone. Which might be a either a problem with my installation or a bug in Qt.

      M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 20 Oct 2015, 07:52 last edited by mrjj
      #16

      @koahnig
      oh. Well. My bad :)
      I tried to install win 10 to but it wont upgrade.
      Pretty strange what ever made it stop to display.

      1 Reply Last reply
      0
      • K koahnig
        20 Oct 2015, 07:49

        @mrjj
        Actually, my initial problem is not solved. ;)
        The warning at wrong connects still seems to be gone. Which might be a either a problem with my installation or a bug in Qt.

        J Offline
        J Offline
        JKSH
        Moderators
        wrote on 20 Oct 2015, 14:59 last edited by
        #17

        @koahnig said:

        The warning at wrong connects still seems to be gone.

        I get the error message for wrong connections, and I'm using Qt 5.5.1 MinGW 4.9.2 32-bit and Qt 5.4.2 MSVC 2013 32-bit on Windows 10 Pro 64-bit.

        Does qDebug() and qWarning() work for you?

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        K 1 Reply Last reply 21 Oct 2015, 10:41
        0
        • J JKSH
          20 Oct 2015, 14:59

          @koahnig said:

          The warning at wrong connects still seems to be gone.

          I get the error message for wrong connections, and I'm using Qt 5.5.1 MinGW 4.9.2 32-bit and Qt 5.4.2 MSVC 2013 32-bit on Windows 10 Pro 64-bit.

          Does qDebug() and qWarning() work for you?

          K Offline
          K Offline
          koahnig
          wrote on 21 Oct 2015, 10:41 last edited by
          #18

          @JKSH said:

          I get the error message for wrong connections, and I'm using Qt 5.5.1 MinGW 4.9.2 32-bit and Qt 5.4.2 MSVC 2013 32-bit on Windows 10 Pro 64-bit.

          Does qDebug() and qWarning() work for you?

          I am using qDebug all the time. It does work.

          Vote the answer(s) that helped you to solve your issue(s)

          J 1 Reply Last reply 21 Oct 2015, 14:12
          0
          • K koahnig
            21 Oct 2015, 10:41

            @JKSH said:

            I get the error message for wrong connections, and I'm using Qt 5.5.1 MinGW 4.9.2 32-bit and Qt 5.4.2 MSVC 2013 32-bit on Windows 10 Pro 64-bit.

            Does qDebug() and qWarning() work for you?

            I am using qDebug all the time. It does work.

            J Offline
            J Offline
            JKSH
            Moderators
            wrote on 21 Oct 2015, 14:12 last edited by
            #19

            @koahnig said:

            I am using qDebug all the time. It does work.

            How about qWarning()?

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            K 1 Reply Last reply 21 Oct 2015, 18:13
            0
            • J JKSH
              21 Oct 2015, 14:12

              @koahnig said:

              I am using qDebug all the time. It does work.

              How about qWarning()?

              K Offline
              K Offline
              koahnig
              wrote on 21 Oct 2015, 18:13 last edited by
              #20

              @JKSH
              qWarning is also working.
              However, your last question brought up a clue of what might have been the case.

              I am using a message handler for redirecting the output of qDebug. It allows to ignore all output, to store all to a file and/or to the screen.
              Since there is a lot of output, the screen output is slowing down dramatically. Therefore, I have redirected the output only to the file. The assert was probably kicking in before the message was written to the file. I have seen this with other output before, but never with the warning for connection failures (Probably I had also screen output then).

              Anyway even when the problem was between chair and keyboard, it was good to have the discussion. Otherwise I would not have learnt about the new syntax.

              Thanks again.

              Vote the answer(s) that helped you to solve your issue(s)

              1 Reply Last reply
              0
              • K Offline
                K Offline
                koahnig
                wrote on 21 Oct 2015, 18:18 last edited by
                #21

                A point I have missed in my previous response.

                I have written a small test this time.

                #include "Clas.h"
                #include <QTimer>
                #include <QDebug>
                
                Clas::Clas(QObject *parent) :
                    QObject(parent)
                {
                    QTimer *timea = new QTimer ( this );
                    connect ( timea, SIGNAL ( timerout() ), this, SLOT (sltQuit() ) );
                    qDebug() << "debug";
                    qWarning() << "warning";
                }
                void Clas::sltQuit()
                {
                }
                

                and here is the output

                Qt: Untested Windows version 10.0 detected!
                QObject::connect: No such signal QTimer::timerout() in ..\..\Test\CheckConnect\Clas.cpp:9
                debug
                warning
                

                So it is working perfectly also on windows 10 with MinGW version Qt 5.4.1.

                Vote the answer(s) that helped you to solve your issue(s)

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 21 Oct 2015, 20:27 last edited by
                  #22

                  Just saw something: the warning's right, the signal is timeout not timerout

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  K 1 Reply Last reply 22 Oct 2015, 08:04
                  0
                  • J Offline
                    J Offline
                    JKSH
                    Moderators
                    wrote on 21 Oct 2015, 23:28 last edited by
                    #23

                    Great! :)

                    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                    1 Reply Last reply
                    0
                    • S SGaist
                      21 Oct 2015, 20:27

                      Just saw something: the warning's right, the signal is timeout not timerout

                      K Offline
                      K Offline
                      koahnig
                      wrote on 22 Oct 2015, 08:04 last edited by
                      #24

                      @SGaist
                      Yes. That was intensional. I just tested that my installation is still providing the message.
                      Thanks a lot anyway.

                      Vote the answer(s) that helped you to solve your issue(s)

                      1 Reply Last reply
                      0

                      24/24

                      22 Oct 2015, 08:04

                      • Login

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