QtCreator using QLCDNumber
I’m trying to create a Qt app to read in temperature values. I’m far from completing this as I’m new to Qt. I made a simple form which contains just a QLCDNumber widget on default settings.
so in main.cpp file I try to use this
lcdNumber->display(23); and I get a compiler error:
error: ‘lcdNumber’ was not declared in this scope
I’m not sure if I’m calling the object correctly or if I missed to add a header file or something else.
So let me get this straight, bare with me, I’m new to Qt.
When I create the UI using form, Qt automatically creates the .ui qml for me and I have to use the ui-> to complete my task. Does this also apply to, or is it similar, to other widgets used? any reference to a tutorial or something might help me out.
When I create the UI using form, Qt automatically creates the .ui qml for me
You are confusing interface paradigms here. The things you create based on widgets will not result in QML at all. That will result in a c++ header file (after processing by the uic tools wich will be run by qmake), which is then included in your application.