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. GUI Design -- Forms (UI) vs code
Forum Updated to NodeBB v4.3 + New Features

GUI Design -- Forms (UI) vs code

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 1.1k Views 1 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.
  • B Offline
    B Offline
    Balaji N
    wrote on 10 Aug 2018, 10:56 last edited by
    #1

    To design the GUI (keep the Push buttons, List, Icons and etc), which method is good, i.e. Using the Forms and drag and drop the push buttons, list and icons (first method) or in code, creates the push buttons, list, icons and layouts (second method).

    When we need to go for the first method? and when we need to use the 2nd method?

    -Thanks.

    J 1 Reply Last reply 10 Aug 2018, 10:58
    0
    • B Balaji N
      10 Aug 2018, 10:56

      To design the GUI (keep the Push buttons, List, Icons and etc), which method is good, i.e. Using the Forms and drag and drop the push buttons, list and icons (first method) or in code, creates the push buttons, list, icons and layouts (second method).

      When we need to go for the first method? and when we need to use the 2nd method?

      -Thanks.

      J Offline
      J Offline
      JonB
      wrote on 10 Aug 2018, 10:58 last edited by
      #2

      @Balaji-N
      I use Python/PyQt and not Qt Creator, so I go for the second method. I'm used to that. But for most people designing the GUI in Qt Creator is easier/more maintainable. You would then use dynamic creation at runtime only if you have to somewhere for some purpose.

      1 Reply Last reply
      0
      • B Offline
        B Offline
        Balaji N
        wrote on 10 Aug 2018, 11:07 last edited by
        #3

        @JonB
        Thanks for the reply. I will check this.

        M 1 Reply Last reply 10 Aug 2018, 13:30
        0
        • B Balaji N
          10 Aug 2018, 11:07

          @JonB
          Thanks for the reply. I will check this.

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 10 Aug 2018, 13:30 last edited by
          #4

          @Balaji-N
          Just as a note. You can easy mix both.
          The UI files is actually only code when app runs so
          you can both use Design AND same time add widgets
          from code for any dymnamic part.
          Qt is even so flexible that you can load UI file at run time
          to use as template for dynamic creation.
          http://doc.qt.io/qt-5/quiloader.html

          1 Reply Last reply
          2

          1/4

          10 Aug 2018, 10:56

          • Login

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