Correct syntax to register object reference using qRegisterMetaType?
-
@SPlatten said in Correct syntax to register object reference using qRegisterMetaType?:
not for the ones where I've used Qt::DirectConnection
Then it's useless since then Qt::AutoConnection evaluates to Qt::DirectConnection. Specifying a connection type is not needed in most of the cases.
-
@SPlatten said in Correct syntax to register object reference using qRegisterMetaType?:
not for the ones where I've used Qt::DirectConnection
Then it's useless since then Qt::AutoConnection evaluates to Qt::DirectConnection. Specifying a connection type is not needed in most of the cases.
wrote on 6 Jan 2021, 18:45 last edited by@Christian-Ehrlicher , Well that's the only change I'm implemented and now there is no message, so perhaps this is something that needs looking at?
-
@Christian-Ehrlicher , Well that's the only change I'm implemented and now there is no message, so perhaps this is something that needs looking at?
@SPlatten said in Correct syntax to register object reference using qRegisterMetaType?:
@Christian-Ehrlicher , Well that's the only change I'm implemented and now there is no message, so perhaps this is something that needs looking at?
For that a minimal compilable example would be needed.
-
@Christian-Ehrlicher , Well that's the only change I'm implemented and now there is no message, so perhaps this is something that needs looking at?
@SPlatten said in Correct syntax to register object reference using qRegisterMetaType?:
so perhaps this is something that needs looking at?
This means that there is a thread context switch somewhere even you tell us it isn't.
-
@Christian-Ehrlicher , Well that's the only change I'm implemented and now there is no message, so perhaps this is something that needs looking at?
@SPlatten said in Correct syntax to register object reference using qRegisterMetaType?:
@Christian-Ehrlicher , Well that's the only change I'm implemented and now there is no message, so perhaps this is something that needs looking at?
Run with
QT_FATAL_WARNINGS=1
as an environment variable and extract the stack trace, then you will have leveraged your debugger to show you exactly where you're passing a reference between threads. -
@SPlatten said in Correct syntax to register object reference using qRegisterMetaType?:
@Christian-Ehrlicher , Well that's the only change I'm implemented and now there is no message, so perhaps this is something that needs looking at?
Run with
QT_FATAL_WARNINGS=1
as an environment variable and extract the stack trace, then you will have leveraged your debugger to show you exactly where you're passing a reference between threads.wrote on 6 Jan 2021, 20:11 last edited by@kshegunov said in Correct syntax to register object reference using qRegisterMetaType?:
QT_FATAL_WARNINGS=1
I've opened both .pro files and added that line, then cleaned and rebuilt, the applications have been running for several minutes, nothing to report, no issues.
-
It's an environnement variable, not a define.
You have to set it in the Run tab of the Project panel.
-
It's an environnement variable, not a define.
You have to set it in the Run tab of the Project panel.
-
Restarted what ?
How are you currently running your application ? -
Lifetime Qt Championwrote on 7 Jan 2021, 08:33 last edited by SGaist 1 Jul 2021, 08:33
Did you check the environment variables in the Run part of the Project Panel to ensure it's properly set ?
-
Did you check the environment variables in the Run part of the Project Panel to ensure it's properly set ?
-
@SGaist , I checked in a terminal, I don't know how or where to "Run part of the Project Panel" ?
Lifetime Qt Championwrote on 8 Jan 2021, 07:14 last edited by jsulm 1 Aug 2021, 07:14@SPlatten said in Correct syntax to register object reference using qRegisterMetaType?:
I don't know how or where to "Run part of the Project Panel" ?
Easy to find actually.
Left pane: Projects -> Build & Run -> Run... -
@SPlatten said in Correct syntax to register object reference using qRegisterMetaType?:
I don't know how or where to "Run part of the Project Panel" ?
Easy to find actually.
Left pane: Projects -> Build & Run -> Run...
30/34