Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Qt 5 libqxt problems
Qt 6.11 is out! See what's new in the release blog

Qt 5 libqxt problems

Scheduled Pinned Locked Moved 3rd Party Software
1 Posts 1 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Klaudijus
    wrote on last edited by
    #1

    Hello! I have a problem. I've downloaded libqxt to use with Qt and can't get it to work. I ran configure.bat, ran mingw32-make and mingw32-make install then I copied all the folders with files from C:\Qxt\Includes to my Qt directory\5.2.1\mingw48_32\include. After including qxt in my project file:
    @CONFIG += qxt
    QXT += core gui@

    I got an error saying that there's no rule to make a file, I figured out what the problem was so I just copied all the files from the folders to my mingw32 includes folder. It looks like a mess, but that's how I got past that little problem. But now I have another problem, when I try building my program, I get the following errors: @C:\Users\Klaudijus\Desktop\Event_Script/widget.cpp:54: undefined reference to _imp___ZN17QxtGlobalShortcutC1EP7QObject' C:\Users\Klaudijus\Desktop\Event_Script/widget.cpp:56: undefined reference to _imp___ZN17QxtGlobalShortcut11setShortcutERK12QKeySequence'
    C:\Users\Klaudijus\Desktop\Event_Script/widget.cpp:58: undefined reference to _imp___ZN17QxtGlobalShortcutC1EP7QObject' Makefile.Debug:80: recipe for target 'debug\Event_Script.exe' failed C:\Users\Klaudijus\Desktop\Event_Script/widget.cpp:60: undefined reference to _imp___ZN17QxtGlobalShortcut11setShortcutERK12QKeySequence'
    debug/widget.o: In function ZN6Widget10EitiIEventEv': C:\Users\Klaudijus\Desktop\Event_Script/widget.cpp:86: undefined reference to _imp___ZN17QxtGlobalShortcut11setShortcutERK12QKeySequence'
    C:\Users\Klaudijus\Desktop\Event_Script/widget.cpp:91: undefined reference to _imp___ZN17QxtGlobalShortcut11setShortcutERK12QKeySequence' debug/widget.o: In function ZN6Widget22on_prisijungti_clickedEv':
    C:\Users\Klaudijus\Desktop\Event_Script/widget.cpp:127: undefined reference to _imp___ZN17QxtGlobalShortcut11setShortcutERK12QKeySequence' debug/widget.o: In function ZN6Widget13keyPressEventEP9QKeyEvent':
    C:\Users\Klaudijus\Desktop\Event_Script/widget.cpp:260: undefined reference to _imp___ZN17QxtGlobalShortcut11setShortcutERK12QKeySequence' debug/widget.o:C:\Users\Klaudijus\Desktop\Event_Script/widget.cpp:267: more undefined references to _imp___ZN17QxtGlobalShortcut11setShortcutERK12QKeySequence' follow
    collect2.exe: error: ld returned 1 exit status@

    No matter whether I try to build it in Debug or Release mode. The lines that give the error look like this:

    @ shortcut = new QxtGlobalShortcut(this);
    connect(shortcut, SIGNAL(activated()), this, SLOT(EitiIEvent()));
    shortcut->setShortcut(QKeySequence(Hotkey));@

    (The first and the third lines)
    I have defined what 'shortcut' is above that code:
    @QxtGlobalShortcut* shortcut;@

    So does anyone know what's wrong with my libqxt? Thanks in advance!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved