From fa634e752cd00e780a8543ce2b5695e80846dd0a Mon Sep 17 00:00:00 2001 From: Matt Aber Date: Sun, 25 Feb 2024 21:39:52 -0500 Subject: [PATCH] Resolve "unregistered datatype 'QHeaderView'" Fix #949 When running GR from command line we get: ``` QMetaMethod::invoke: Unable to handle unregistered datatype 'QHeaderView*' ``` on tab loading. Register the type to fix. --- client/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/main.cpp b/client/main.cpp index 5e473e6da5..d44d80d48f 100644 --- a/client/main.cpp +++ b/client/main.cpp @@ -24,6 +24,8 @@ #include #include +#include + using namespace GammaRay; int main(int argc, char **argv) @@ -43,6 +45,8 @@ int main(int argc, char **argv) Translator::loadStandAloneTranslations(); ClientConnectionManager::init(); + qRegisterMetaType("QHeaderView*"); + QUrl serverUrl; if (app.arguments().size() == 2) { serverUrl = QUrl::fromUserInput(app.arguments().at(1));