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 6910637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:50:25+00:00 2026-05-27T08:50:25+00:00

The plan is to get a possibility to customize a QSpinBox for hex view

  • 0

The plan is to get a possibility to customize a QSpinBox for hex view for example. I found some examples on the Internet and tried my self with my own version. Every time I get similar linker errors. Since I’m no QT expert I hope someone here could help:

The Error:

1>CustomSpinBox.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CustomSpinBox::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@CustomSpinBox@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
1>CustomSpinBox.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall CustomSpinBox::qt_metacast(char const *)" (?qt_metacast@CustomSpinBox@@UAEPAXPBD@Z)
1>CustomSpinBox.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall CustomSpinBox::metaObject(void)const " (?metaObject@CustomSpinBox@@UBEPBUQMetaObject@@XZ)

Here is a sample code I found.

https://bitbucket.org/megazig/megagecko/src/c20ec5e7003c/src/qhexspinbox.h

https://bitbucket.org/megazig/megagecko/src/c20ec5e7003c/src/qhexspinbox.cpp

My version is just a little bit easier. I have just this CustomSpinBox class which I wanted to integrate by the promotion feature of QT Designer. The problem is I even can’t compile this class… Please help…

I’m using QT 4.7.4 with Visual C++ 2010 and these errors are coming from Visual Studio.

  • 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-05-27T08:50:26+00:00Added an answer on May 27, 2026 at 8:50 am

    You need to moc your class definition, but it should to be done automatically.
    Are you using qmake to compile your project? Is definition of your class in *.h file? Is this *.h file added to HEADERS list in your project file?

    Alternatively, if you do’t use properties, metaobjects, or add any new signals/slots to your class, you can simply ommit Q_OBJECT from your class definition.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Overall Plan Get my class information to automatically optimize and select my uni class
I plan on using JSONP to call an external web service to get around
When I try to create a new Maintenance Plan in SQL Server, I get
We plan to redesign, improve our (C#) application architecture. Anyone has some framework, hompage
Weird question: I have an iPod Touch and plan to get an iPhone once
How can I get the execution plan for a query in Informix? I need
What is the best free way to get your maintenance plan-generated backups compressed? I
I am developing a seat plan website. When a desk is clicked I get
I plan to start developing with WCF this weekend. Before i get too far
Is it possible to get the execution plan of a LINQ to SQL or

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.