Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

Using QxtGlobalShortcut and getting error

$
0
0
I started a new GUI Application in Qt Creator and, to get QxtGlobalShortcut working, I followed the directions located here: http://libqxt.bitbucket.org/doc/0.6/qxtglobalshortcut.html [libqxt.bitbucket.org] In mainwindows.cpp I added: #include <QxtGlobalShortcut> Below this: ui->setupUi(this); I pasted their example:     QxtGlobalShortcut* shortcut = new QxtGlobalShortcut(window);     connect(shortcut, SIGNAL(activated()), window, SLOT(toggleVisibility()));     shortcut->setShortcut(QKeySequence("Ctrl+Shift+F12")); In the projects .pro file below this: QT     += core gui I added this: CONFIG  += qxt QXT     += core gui At the bottom of the .pro file I added this: INCLUDEPATH += C:\Qt\libqxt\src\gui INCLUDEPATH += C:\Qt\libqxt\src\core INCLUDEPATH += C:\Qt\libqxt\include\QxtGui The errors I am getting are: error: no matching function for call to 'QxtGlobalShortcut::QxtGlobalShortcut(<unresolved overloaded function type>)'      QxtGlobalShortcut* shortcut = new QxtGlobalShortcut(window); error: no matching function for call to 'MainWindow::connect(QxtGlobalShortcut*&, const char*, <unresolved overloaded function type>, const char*)'      connect(shortcut, SIGNAL(activated()), window, SLOT(toggleVisibility())); ——————————————————————————— Also, in their example, I changed the pointer “window” to “this” and I get this crazy error: error: undefined reference to `_imp___ZN17QxtGlobalShortcutC1EP7QObject' ——————————————————————————— So I am stuck now. What am I doing wrong or what am I missing? Thank you!

Viewing all articles
Browse latest Browse all 13965

Trending Articles