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. How to save customized ui at runtime?
Forum Updated to NodeBB v4.3 + New Features

How to save customized ui at runtime?

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

    I want to save ui file (xml format) at runtime after some customization

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Please do, nobody prevents you from doing that...

      More seriously: what do you mean? Do you have some custom .ui generator? Or you want to modify the way your application looks based on runtime user input? If the latter is the case, then the answer is: you don't. Your compiled application does not know anything about the .ui file, all it has got is the generated header (ui_*.h). You need to either use QUILoader, or design your application UI so that it can be changed (you have all the powers needed to do it in C++).

      But to give any more details, I need some more info from you.

      (Z(:^

      1 Reply Last reply
      0
      • R Offline
        R Offline
        R.MMM
        wrote on last edited by
        #3

        Thanks so mush for your reply,
        It is first time for me to use QT, and my knowledge in C++ is basic
        -I tried to reload already saved .ui file that created before in designer using QuiLoader
        -what I'm asking about is
        change the UI (adding new controls for example) and change the style (colors and fonts ) at runtime and save this created ui to reload it again later with latest changes I did.

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          OK, then please do this:

          • read a book on C++
          • read a book on Qt

          and then continue with your project. I could explain everything to you, but it's already done in the books, and much better than I could.

          (Z(:^

          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