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. Unit Test's extern source class doesn't compile
Forum Updated to NodeBB v4.3 + New Features

Unit Test's extern source class doesn't compile

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.2k 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.
  • P Offline
    P Offline
    Peppy
    wrote on last edited by
    #1

    Hi folks, I got one little issue: When I am compiling Unit Test for my application, the test won't compile, because extern class "Exception" does not provide copying constructor (due to Q_DISABLE_COPY) and compiler yells that QObject::QObject can't access private data (C2248) so the test fails. When I try to build only application - it works even with class Exception (as it is a part of that project).

    I really don't know what to do with Unit Test to make it work...the question is, how to get rid of that error?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      D0IT
      wrote on last edited by
      #2

      Just from the message provided, it's hard to tell, what might cause the error. Could be a problem with private (default) inheritance from QObject in your Unit Test class?
      The source of the Unit Test class would help in understanding the error better.

      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