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. Basic Widgets Functionality Questions
Forum Update on Monday, May 27th 2025

Basic Widgets Functionality Questions

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.3k 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
    DouDou
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      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.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0

      • Login

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