Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9119449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:23:55+00:00 2026-06-17T05:23:55+00:00

In fact I’m not really here for a question but to share an issue

  • 0

In fact I’m not really here for a question but to share an issue which drived me crazy during hours.

The classical solution for the error ‘expected unqualified-id […]’ in most of the cases is a missing semicolon at the end of your class declaration. That is not the case here.

Now let me explain what happened. I needed a class a some objects developped by a co-worker and those sources where already used by other part of the soft. So I know it’s working and usable. So I modified my makefile and my includes, recompile and boom, I have that:

foobar.hh:81: error: expected unqualified-id before “protected”

I was including pretty much the same things than my co-worker with similar makefile and environnement, so I couldn’t understand the issue. But finally, we found the big difference:
I’m using QT (since I’m developping a GUI) and the methods pointed by the compiler where the errors occured were all named ‘signals’.

I don’t have the full explanation, but we only changed the methods names to something else, and it’s working. For QT users, you know that signals is a specific QT word, used for the signal/slot mechanism, but I still lost a lot of time on that. If somebody can explain precisely the issue I’m interested, but I wanted to share this quick workaround with you (and because stackoverflow helped me by the past a loooot of time).

Regards,
Ikwy

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:23:56+00:00Added an answer on June 17, 2026 at 5:23 am

    signals is a kind keyword in Qt. This name can not be used as identifier in Qt. You cannot declare functions or variables with this name.

    • You can just rename your identifier.
    • Or you could make your project with Qt keywords disabled, but then you should make sure those keywords are not used in your project in their Qt meaning. (And they probably are). To disable keywords you should make your project (assuming using qmake) with CONFIG += no_keywords option enabled)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's the fact : I made a tiny app which consist of a table
Fact: I'm not that good with jQuery. Problem: I have a form containing dynamically
In fact, my question concerns an algorithm. I need to be able to attach
Consider a fact table of the form: CREATE TABLE Fact1 ( Dim1 int NOT
In fact I have Idea about the exception handling. But while facing the interview
Apart from the fact that HashSet does not allow duplicate values, what is the
The fact that it is a LINQ result might perhaps not be relevant for
When it is in fact not defined, it gets the value nil just because
as a fact of performance which one is better? Is there a difference between
fact(1,1):-!. fact(N,F):- N1=N-1, fact(N1,F1), F=F1*N. It leads to the stackoverflow(not the site)! It shouldn't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.