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. C++ and QtC++
Forum Updated to NodeBB v4.3 + New Features

C++ and QtC++

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 465 Views 3 Watching
  • 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.
  • M Offline
    M Offline
    MichaelsCote
    wrote on last edited by
    #1

    Hello, new here.
    also new at programming. I am looking for a way to program a gui in C++. Looking at C++ and Qt C++. They seem to be different languages. I watched a tutorial on creating a notepad application in Qt with C++ but it didn't look anything like C++. Why is that?

    thank you,

    Michael Cote'

    JKSHJ 1 Reply Last reply
    0
    • M MichaelsCote

      Hello, new here.
      also new at programming. I am looking for a way to program a gui in C++. Looking at C++ and Qt C++. They seem to be different languages. I watched a tutorial on creating a notepad application in Qt with C++ but it didn't look anything like C++. Why is that?

      thank you,

      Michael Cote'

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi, and welcome!

      @michaelscote said in C++ and QtC++:

      Looking at C++ and Qt C++. They seem to be different languages.

      C++ is a language, while Qt is a library.

      The Qt library is written in standard C++. Qt also supports declarative programming via the QML language (which incorporates the JavaScript language)

      Note that Qt isn't just a library either. It also includes tools like a WYSIWYG (what-you-see-is-what-you-get) GUI editor called Qt Designer. This lets you create C++ GUIs quickly, but it stores its files in XML format.

      I watched a tutorial on creating a notepad application in Qt with C++ but it didn't look anything like C++. Why is that?

      Hard to say without seeing the tutorial! Can you provide a link?

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      8
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        Perhaps the bits that have put you off are Qt-specific C++ "features" like Q_OBJECT, signals and slots - but don't worry, they are 100% standard C++. The trick is that Qt uses a code generator (called MOC - Meta Object Compiler) which generates the files that "add" these features. All these files (your code and generated MOC code) are normal C++, compiled with a regular C++ compiler.

        (Z(:^

        1 Reply Last reply
        7

        • Login

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