Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [SOLVED] Qt in VS2008 issue
Qt 6.11 is out! See what's new in the release blog

[SOLVED] Qt in VS2008 issue

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 1 Posters 2.0k 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.
  • B Offline
    B Offline
    bnosam
    wrote on last edited by
    #1

    I installed the plugin and everything seemed to work fine, however when I try to compile (I didn't add any code, it's just the base code that is automatically created), I get the errors:

    1>------ Build started: Project: QTCalc, Configuration: Debug Win32 ------
    1>Uic'ing mainwindow.ui...
    1>Compiling...
    1>moc_mainwindow.cpp
    1>d:\dsfiles\qtcalc\qtcalc\generatedfiles\debug../../mainwindow.h(16) : error C2039: 'MainWindowClass' : is not a member of 'Ui'
    1>d:\dsfiles\qtcalc\qtcalc\generatedfiles\debug../../mainwindow.h(16) : error C2146: syntax error : missing ';' before identifier 'ui'
    1>d:\dsfiles\qtcalc\qtcalc\generatedfiles\debug../../mainwindow.h(16) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>d:\dsfiles\qtcalc\qtcalc\generatedfiles\debug../../mainwindow.h(16) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>mainwindow.cpp
    1>d:\dsfiles\qtcalc\qtcalc\mainwindow.h(16) : error C2039: 'MainWindowClass' : is not a member of 'Ui'
    1>d:\dsfiles\qtcalc\qtcalc\mainwindow.h(16) : error C2146: syntax error : missing ';' before identifier 'ui'
    1>d:\dsfiles\qtcalc\qtcalc\mainwindow.h(16) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>d:\dsfiles\qtcalc\qtcalc\mainwindow.h(16) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>.\mainwindow.cpp(6) : error C2065: 'ui' : undeclared identifier
    1>.\mainwindow.cpp(6) : error C2228: left of '.setupUi' must have class/struct/union
    1> type is ''unknown-type''
    1>main.cpp
    1>d:\dsfiles\qtcalc\qtcalc\mainwindow.h(16) : error C2039: 'MainWindowClass' : is not a member of 'Ui'
    1>d:\dsfiles\qtcalc\qtcalc\mainwindow.h(16) : error C2146: syntax error : missing ';' before identifier 'ui'
    1>d:\dsfiles\qtcalc\qtcalc\mainwindow.h(16) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>d:\dsfiles\qtcalc\qtcalc\mainwindow.h(16) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>Generating Code...
    1>Build log was saved at "file://D:\DSFiles\QTCalc\Win32\Debug\BuildLog.htm"
    1>QTCalc - 14 error(s), 0 warning(s)

    There is no reason why this should error out, it's just the default generated code...

    thanks

    EDIT: Fixed the issue, turns out the objectName was generated incorrectly somehow.

    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