Basic Widgets Functionality Questions



  • Hello,

    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;
    return 0;
    }@

    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


  • Moderators

    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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.