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
QtWS25 Last Chance

Designer or pure C++ code

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 1.8k 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.
  • tomyT Offline
    tomyT Offline
    tomy
    wrote on 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.

    raven-worxR 1 Reply Last reply
    0
    • tomyT tomy

      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.

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on 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
      • Pradeep KumarP Offline
        Pradeep KumarP Offline
        Pradeep Kumar
        wrote on 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
        • VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on 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

          Pradeep KumarP 1 Reply Last reply
          2
          • VRoninV VRonin

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

            Pradeep KumarP Offline
            Pradeep KumarP Offline
            Pradeep Kumar
            wrote on 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

            • Login

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