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. Understanding code generated by Qt Designer
Forum Updated to NodeBB v4.3 + New Features

Understanding code generated by Qt Designer

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 2.0k 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.
  • F Offline
    F Offline
    fs_tigre
    wrote on last edited by
    #1

    Hi,

    I have been practicing with Qt Designer and I was hoping to learn more abut Qt in general by making changes in Qt Designer and see the code generated but to my surprise if you changed something in the properties panel it doesn't generate any code except some XML, I think.

    Is there a way to see the code generated by Qt Designer?

    How would you dynamically interact with properties you changed in Qt Designer?

    Can someone explain the main differences (limitations) between coding everything by hand vs using Qt Designer?

    I love the Qt Designer interface, so I would like to use it as much as possible.

    Thanks a lot

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dbzhang800
      wrote on last edited by
      #2

      http://qt-project.org/doc/qt-4.8/designer-using-a-ui-file.html

      1. designer ==> XXXX.ui
      2. uic XXX.ui -o ui_XXXX.cpp
      1 Reply Last reply
      0
      • F Offline
        F Offline
        fs_tigre
        wrote on last edited by
        #3

        Thank you for the link, I will take a look.

        Thanks a lot!

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          Actually, uic normally produces a .h file, not a .cpp file... Note that qmake will make sure that the uic tool is called on all .ui files that you list in the FORMS section of your .pro file.

          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