Qt World Summit: Register Today!


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



  • 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?



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



  • 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!


Log in to reply