Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. qtcore
    Log in to post

    • SOLVED QSignalSpy report wrong number of emitted signal
      General and Desktop • signal test qtcore qsignalspy • • sardylan  

      4
      0
      Votes
      4
      Posts
      217
      Views

      I managed to solve the problem. The cause was my mistake in understanding how signals works in test environment. During tests I have no EventLoop running, so the signal-slot mechanism of Qt can't work. De facto, every time the assign method execute, I was emitting a signal using a Qt:QueueConnection, but there was no EventLoop running to process the signal queue. Every time I call a setter method in test code, the next line have to be: QVERIFY(signalSpy->wait()); which waits, no more than 5 seconds, running an internal EventLoop to process all emitted signals, and waiting for signals of the same type declared in QSignalSpy instance. Since I had some methods with signal checks and some with only simple code checks (but both of them emit signals) I had a continuous jump between methods with and without QSignalSpy usage. Since no EventLoop is running on tests, when I called the wait method on QSignalSpy instance, I was getting all the queued signals emitted on the previous test method, which also explain why I was getting constant numbers on signal counts. I was not able to resolve just calling signalSpy->clear() in cleanup method because there was nothing to clear. One solution could be to run the EventLoop between every tests method, just to be sure that the next test will handle only signals emitted in its code. I resolved the problem implementing signals checks in every test method, which not only was my initial goal, but which ensure that every signal-emitting code is followed by a call to wait() method, which runs the EventLoop. Every signal, now, is kept inside the test method and everything seems to works. Thanks for support
    • SOLVED Qprocess reading execution output Simentensously
      General and Desktop • qprocess qtcore command line shell • • Amirhos  

      9
      0
      Votes
      9
      Posts
      733
      Views

      @Amirhos Unfortunately this is difficult, especially under Windows. If, for whatever reason, the third-party app is buffering its output at its own side then you cannot force it down the pipe to your parent, it depends how the code is written at their side....
    • UNSOLVED Libicu, needed by Qt5Core, compilation issues. Please help!! Worked fine in 18.04, but not 16.04.
      Installation and Deployment • error compilation ubuntu 16.04 qtcore help install • • zeethree50  

      8
      0
      Votes
      8
      Posts
      1515
      Views

      @zeethree50 said in Libicu, needed by Qt5Core, compilation issues. Please help!! Worked fine in 18.04, but not 16.04.: And it worked for me Great, so please don't forget to mark your post as solved!
    • UNSOLVED App crashes when Qt core calls WinAPI's "DispatchMessage" function
      General and Desktop • qtcreator windows qtcore winapi • • psi-1  

      3
      0
      Votes
      3
      Posts
      862
      Views

      @kshegunov said in App crushes when Qt core calls WinAPI's "DispatchMessage" function: This address is rather suspicious. Please tell me you don't have global QWidgets? No, I have only a dll with function extern "C" CORE_SHARED_API QMainWindow * svCreateMainWindow() { return new MainWindow; } (CORE_SHARED_API is __declspec(dllexport)) @kshegunov said in App crushes when Qt core calls WinAPI's "DispatchMessage" function: Btw, 0xc0000409 is stack overflow, so be on the lookout for endless recursion. As I said, QWindowsGuiEventDispatcher::processEvents() is called twice, and I believe those calls are on the same stack level (crush happens in the second call).
    • SOLVED How to create a folder and write a file in it, using the UNC Path
      General and Desktop • qtcore network share • • chaithubk  

      9
      0
      Votes
      9
      Posts
      2864
      Views

      @JonB Yeah I had an issue with QStorageInfo() so I am using GetFreeDiskSpaceEx() to calculate the available space.
    • SOLVED Qprocess not taking proper arguments
      General and Desktop • qt creator qprocess qtcore • • Qjay  

      10
      0
      Votes
      10
      Posts
      1839
      Views

      You might have modified PATH in your terminal session only for example. Or you may have modified PATH in the Run part of the Project panel.
    • Multidex support with Qt Android
      Mobile and Embedded • android qtcore multidex • • robolivable  

      2
      1
      Votes
      2
      Posts
      1709
      Views

      Hi, Thanks for sharing this ! Looks it might be worth including in Qt's platform notes for Android
    • QTime microsecond
      General and Desktop • qdatetime qtcore qtime • • soxslayer  

      3
      0
      Votes
      3
      Posts
      1926
      Views

      @SGaist said: should post this question to the development mailing list. You'll find the Qt's developers/maintainers (this forum is more user oriented) A discussion on this topic started on that mailing list yesterday, for those who are interested: http://comments.gmane.org/gmane.comp.lib.qt.devel/23437
    • Problem with QTimer and QtCore
      General and Desktop • qtimer libraries qtcore • • axel_av  

      3
      0
      Votes
      3
      Posts
      1234
      Views

      Hi and welcome to devnet, In addition to @mrjj, can you show the exact error you have ?
    • [SOLVED] QList's append and prepend SEGFAULTs
      General and Desktop • qlist qtcore • • Peppy  

      3
      0
      Votes
      3
      Posts
      2796
      Views

      It's been solved. "this" pointer was null, thus it was crazy debugging.
    • I've set the includepath to QtCore in pro file but that doesn't work and includes still give error
      General and Desktop • c++ qtcreator windows qmake qt5.4 qtcore includepath pro • • carlos91moreira  

      4
      0
      Votes
      4
      Posts
      2548
      Views

      Easy: just edit the thread title and prepend [solved] :)
    • Why foreach is not using const reference (it is making copies)?
      C++ Gurus • qt5 qtcore • • Prog  

      7
      0
      Votes
      7
      Posts
      3135
      Views

      If you would like to discuss that issue further down, then I'd recommend asking it on the interest mailing list You'll find there Qt's developers/maintainers (this forum is mor e user oriented)
    • QtCore/QtGlobal: No such file or directory
      General and Desktop • qtcore qtgstreamer qtglobal • • JackCWallace  

      1
      0
      Votes
      1
      Posts
      2867
      Views

      No one has replied