Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QLibrary : unknown type name?
Forum Updated to NodeBB v4.3 + New Features

QLibrary : unknown type name?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 914 Views
  • 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.
  • RogerBretonR Offline
    RogerBretonR Offline
    RogerBreton
    wrote on last edited by
    #1

    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?

    Roger Breton
    www.graxx.ca

    Ketan__Patel__0011K 1 Reply Last reply
    0
    • nageshN Offline
      nageshN Offline
      nagesh
      wrote on last edited by
      #2

      @RogerBreton Did you forget to add #include <QLibrary>
      https://doc.qt.io/qt-5/qlibrary.html

      1 Reply Last reply
      3
      • RogerBretonR RogerBreton

        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?

        Ketan__Patel__0011K Offline
        Ketan__Patel__0011K Offline
        Ketan__Patel__0011
        wrote on last edited by
        #3

        @RogerBreton

        Just Add #include <QLibrary> in your header either Source file of your project.

        1 Reply Last reply
        1

        • Login

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