Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Modifying cascaded UI at runtime
Forum Updated to NodeBB v4.3 + New Features

Modifying cascaded UI at runtime

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 0 Posters 1.7k 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.
  • ? This user is from outside of this forum
    ? This user is from outside of this forum
    Guest
    wrote on last edited by
    #1

    Hello,

    I had "this":http://developer.qt.nokia.com/forums/viewthread/9973/ problem and solved it with "this":http://developer.qt.nokia.com/forums/viewthread/6536 help.

    I actually have the following structure:

    • MainWidget with (a custom) constructor and a "setupUi()" inside it.
    • ComponentWidget with (a default and a custom) constructor and a "setupUi()" inside.
    • the *.ui of the ComponentWidget is embedded (through promotion) in the *.ui of the MainWidget (Qt-Designer).

    I create the ComponentWidget through initialization list from MainWidget, but the "setupUi" calls the default constructor (that I "must" provide) so I get the default UI of the component at the end.

    I actually want to create many components in the style of "component.ui" and customize each afterwards (let say change the text on the buttons if you read the linked post). For that I need to pass arguments to the constructor of the embedded component. I looked at the generated class, but didn't figure out how to proceed.

    Any help would be appreciated.

    1 Reply Last reply
    0
    • ? This user is from outside of this forum
      ? This user is from outside of this forum
      Guest
      wrote on last edited by
      #2

      I just found some documentation at "this":http://doc.qt.nokia.com/latest/qtuitools.html and "this":http://doc.qt.nokia.com/latest/quiloader.html locations and will try to go through it, but if someone knows the solution or a better approach to achieve what I am trying to do... let me know.

      1 Reply Last reply
      0
      • ? This user is from outside of this forum
        ? This user is from outside of this forum
        Guest
        wrote on last edited by
        #3

        Hmmm, that did not help, because the ui I want to modify at runtime is the embedded one (generated code).

        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