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. Where are the widget objects placed?
Forum Updated to NodeBB v4.3 + New Features

Where are the widget objects placed?

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

    When widgets are created on Designer layout within Qt Creator, each widget has an object name.
    I created a simple example with some widgets ( it compiled ), I could find the corresponding name of the widget object in any of the header files show in Qt Creator.

    Can someone tell me where they are located?
    Please be specific.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SimonL
      wrote on last edited by
      #2

      they are located in the .ui file as xml during the build QMake i believe or some other tool will generate a header file from xml this file is normally in the form ui_<Name Of .ui File>.h

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Franzk
        wrote on last edited by
        #3

        [quote author="SimonL" date="1308188576"]they are located in the .ui file as xml during the build QMake i believe or some other tool will generate a header file from xml this file is normally in the form ui_<Name Of .ui File>.h[/quote]

        Correct. This tool is uic.

        "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

        http://www.catb.org/~esr/faqs/smart-questions.html

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

          Indeed. The widget object names end up in the header file that you include in the header file for the class implementation. It is, as SimonL mentioned, named ui_<Name Of .ui File>.h, but it only exists after building. It is educational to have a look at it once.

          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