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. C2491 Error using QT_INIT_METAOBJECT
Forum Updated to NodeBB v4.3 + New Features

C2491 Error using QT_INIT_METAOBJECT

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 207 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.
  • S Offline
    S Offline
    Saee1101
    wrote on last edited by Saee1101
    #1

    I have problem with SmtpClient for Qt in windows :

    QT_INIT_METAOBJECT const QMetaObject SmtpClient::staticMetaObject = { {
        QMetaObject::SuperData::link<QObject::staticMetaObject>(),
        qt_meta_stringdata_SmtpClient.data,
        qt_meta_data_SmtpClient,
        qt_static_metacall,
        nullptr,
        nullptr
    } };
    

    I don't know what to do ?
    help me , please.

    Christian EhrlicherC 1 Reply Last reply
    0
    • S Saee1101

      I have problem with SmtpClient for Qt in windows :

      QT_INIT_METAOBJECT const QMetaObject SmtpClient::staticMetaObject = { {
          QMetaObject::SuperData::link<QObject::staticMetaObject>(),
          qt_meta_stringdata_SmtpClient.data,
          qt_meta_data_SmtpClient,
          qt_static_metacall,
          nullptr,
          nullptr
      } };
      

      I don't know what to do ?
      help me , please.

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Dupe of https://forum.qt.io/topic/154289/c2491-smtpclient-staticmetaobject-definition-of-dllimport-static-data-member-not-allowed/

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher locked this topic on

      • Login

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