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. Create a file.ui with code c++
Forum Updated to NodeBB v4.3 + New Features

Create a file.ui with code c++

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 364 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.
  • W Offline
    W Offline
    Will22
    wrote on last edited by
    #1

    Hello I've work on an improvement of a graphic interface for 1 month and I've just realized that I modified the file "ui_monitorwindow.h" instead of "monitorwindow.ui". I would like to conserve my modifications and add them in "monitorwindow.ui" because the other file is automatically delete at each "make clean". Is it possible to make it automatically ?

    Thank for your help !

    Will

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to the forums.
      If you mean to read the c++ and generate a UI file from it ?
      As far as I know, its not possible.
      However, if you add code to setup some of the widgets, you can move that code to the
      constructor after setupUI and it will work the same.
      However, if you add new widgets from code, that can still work in constructor, however
      the visual UI will not show those in design mode.

      1 Reply Last reply
      3
      • W Offline
        W Offline
        Will22
        wrote on last edited by
        #3

        Ok thank for your answer ! I close this topic.

        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