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. Custom widget -> write items to ui

Custom widget -> write items to ui

Scheduled Pinned Locked Moved General and Desktop
6 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.
  • M Offline
    M Offline
    Menic0
    wrote on last edited by
    #1

    Hi together,

    I've created a custom widget and want to write child items added via the QT Designer to the ui - file.
    Just like the QListWidget writes its items added in the Designer to the ui - xml.

    How do I do that?

    1 Reply Last reply
    0
    • IamSumitI Offline
      IamSumitI Offline
      IamSumit
      wrote on last edited by
      #2

      Hi and welcome to Qt devnet
      just read it carefully with the following link...it will tell you how to deal with Qt designer with your application.
      http://qt-project.org/doc/qt-4.8/designer-using-a-ui-file.html
      hope it would help..:)

      Be Cute

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Menic0
        wrote on last edited by
        #3

        I'm afraid it doesn't (at least I couldn't find anything helpful in there).

        If you look closely, you can edit the items a QListWidget contains initially.
        My Widget can do this too.

        BUT the QListWidget stores the changes you made in the QDesigner into the ui file (as properties i guess), but mine doesn't.

        1 Reply Last reply
        0
        • IamSumitI Offline
          IamSumitI Offline
          IamSumit
          wrote on last edited by
          #4

          ok..
          have you looked on this thread ..there are lot of hints related to your problem.

          http://qt-project.org/forums/viewthread/46517/

          Be Cute

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Menic0
            wrote on last edited by
            #5

            I could do it like mentioned in that thread. But that seems like a bit of a hack for my purposes.

            My intention is, that the Q Designer creates the ui file on some point during a save action. And i want to take influence on the creation of the XML code of my custom widget.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Menic0
              wrote on last edited by
              #6

              The QListView writes elements created in the Q Designer into the ui file. Can I do this too with my custom widget??

              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