Skip to content

Commit

Permalink
Resolve "unregistered datatype 'QHeaderView'"
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mattkdab authored and Waqar144 committed Feb 27, 2024
1 parent 1dbceb1 commit fa634e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#include <QApplication>
#include <QStringList>

#include <QHeaderView>

using namespace GammaRay;

int main(int argc, char **argv)
Expand All @@ -43,6 +45,8 @@ int main(int argc, char **argv)
Translator::loadStandAloneTranslations();
ClientConnectionManager::init();

qRegisterMetaType<QHeaderView *>("QHeaderView*");

QUrl serverUrl;
if (app.arguments().size() == 2) {
serverUrl = QUrl::fromUserInput(app.arguments().at(1));
Expand Down

0 comments on commit fa634e7

Please sign in to comment.