Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Basic Widgets Functionality Questions
DouDou last edited by
I am new to Qt (just downloaded it today), and have zero experience with GUI development (all my programming experience is writing native C++ and build the console versions with gcc). So I apologize for the noob questions.
I am struggling with QT widgets functionality, basically building the GUI with designer is easy, but I can't figure out how to use them.
let's say we have the very trivial following program in native C++
@int main ()
int a = 3, b = 6;
int c = a * b;
So i created a GUI with 2 spinBoxes, one lineEdit and one button. One spin box to input int a, the other to input int b. The button to execute the multiplication, and the lineEdit to display the product (int c).
However I can't figure out the syntax, nor the steps involved. Any help would be great. Thanks
koahnig last edited by
welcome to devnet
Have you seen already "the example page?":https://qt-project.org/doc/qt-4.8/all-examples.html
Also there are plenty of "tutorials":https://qt-project.org/doc/qt-4.8/tutorials.html around.