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. Designer or pure C++ code
Forum Updated to NodeBB v4.3 + New Features

Designer or pure C++ code

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 1.8k 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.
  • T Offline
    T Offline
    tomy
    wrote on 29 Jun 2017, 12:36 last edited by
    #1

    Hi,

    I'm still at the beginning of the book C++-GUI-Programming-with-Qt-4-2nd Edition and tested some C++ hand-code simple programs and one using the Designer.
    As a preference, I prefer hand coding.
    Using the Designer we should first create a Form then make it connected to all three .h, .cpp and main.cpp files. While the result is the same as hand code. The pure hand code is also more straightforward and simpler. we create a .h file and then its implementation in a .cpp file and finally a main.cpp.
    It's easier as well.
    Even at least one of the authors of the book use hand-coding always.
    What are your habits please on this case?
    Do you want to have some advice for me (as a beginner)?

    Thanks.

    R 1 Reply Last reply 29 Jun 2017, 12:41
    0
    • T tomy
      29 Jun 2017, 12:36

      Hi,

      I'm still at the beginning of the book C++-GUI-Programming-with-Qt-4-2nd Edition and tested some C++ hand-code simple programs and one using the Designer.
      As a preference, I prefer hand coding.
      Using the Designer we should first create a Form then make it connected to all three .h, .cpp and main.cpp files. While the result is the same as hand code. The pure hand code is also more straightforward and simpler. we create a .h file and then its implementation in a .cpp file and finally a main.cpp.
      It's easier as well.
      Even at least one of the authors of the book use hand-coding always.
      What are your habits please on this case?
      Do you want to have some advice for me (as a beginner)?

      Thanks.

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 29 Jun 2017, 12:41 last edited by
      #2

      @tomy
      I personally also prefer hand-written code over using the Designer.
      Although it might be very handy for quick prototyping/tests, i like to have full control over my code.

      I think for a beginner you should go also with hand-written code (at least after spending a little bit of time using the designer to get comfortable in Qt) to actually better understand what happens in your application.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      2
      • P Offline
        P Offline
        Pradeep Kumar
        wrote on 29 Jun 2017, 12:58 last edited by Pradeep Kumar
        #3

        Hi,

        @tomy ,

        As a beginner, using designer to do the stuff is better and parallel hands on coding with C++, is a very good move , coz as @raven-worx said, for better understanding it is much way to be adaptive.

        Coz if u want to have customization hand written will come in handy, when u want to have prototypes or just the samples not the plain and complete app , designer is a way go for developing.

        others may pitch in with their understanding and experience too.
        Happy Coding,

        Thanks,

        Pradeep Kumar
        Qt,QML Developer

        1 Reply Last reply
        0
        • V Offline
          V Offline
          VRonin
          wrote on 29 Jun 2017, 13:07 last edited by VRonin
          #4

          Duplicate?
          https://forum.qt.io/topic/74908/purely-in-c-or-designer-mode
          I'd be tempted to lock the thread tbh

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          P 1 Reply Last reply 29 Jun 2017, 13:08
          2
          • V VRonin
            29 Jun 2017, 13:07

            Duplicate?
            https://forum.qt.io/topic/74908/purely-in-c-or-designer-mode
            I'd be tempted to lock the thread tbh

            P Offline
            P Offline
            Pradeep Kumar
            wrote on 29 Jun 2017, 13:08 last edited by
            #5

            @VRonin said in Designer or pure C++ code:

            so most have pitched in.

            Thanks,

            Pradeep Kumar
            Qt,QML Developer

            1 Reply Last reply
            0

            1/5

            29 Jun 2017, 12:36

            • Login

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