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. [SOLVED] "'X' does not namea type" compiler error

[SOLVED] "'X' does not namea type" compiler error

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 875 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.
  • D Offline
    D Offline
    DeanQt
    wrote on 5 Jan 2014, 12:00 last edited by
    #1

    I'm trying to copy a tutorial problem and have the following line of code in the header file:

    @private:

    QdoubleSpinBox *entries[10];@

    Upon compiling the code, I get a compiler error on that line saying QdoubleSpinBox does not name a type.

    How do I resolve this?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      t3685
      wrote on 5 Jan 2014, 13:19 last edited by
      #2

      It's spelled QDoubleSpinBox (notice the capital D) I believe.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DeanQt
        wrote on 5 Jan 2014, 13:48 last edited by
        #3

        You've got to be kidding me, wow, it works. I was convinced it was small d as the ui widget are by default called doubleSpinBox. Thanks!

        1 Reply Last reply
        0

        1/3

        5 Jan 2014, 12:00

        • Login

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