QLibrary : unknown type name?
Unsolved
General and Desktop
-
I'm trying to follow an example for this code :
QLibrary myLib("mcp2221");
But I'm getting :
main.cpp:1:1: error: unknown type name 'QLibrary'
Is there a special include file?
-
@RogerBreton Did you forget to add #include <QLibrary>
https://doc.qt.io/qt-5/qlibrary.html -
Just Add
#include <QLibrary>
in your header either Source file of your project.