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 add a row of widgets army run time
Forum Updated to NodeBB v4.3 + New Features

How to add a row of widgets army run time

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 289 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.
  • T Offline
    T Offline
    TimothyCole
    Banned
    wrote on last edited by TimothyCole
    #1
    This post is deleted!
    jsulmJ Pl45m4P 2 Replies Last reply
    0
    • T TimothyCole

      This post is deleted!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @TimothyCole said in How to add a row of widgets army run time:

      Is this something I can do with either QT creator or designer with UI files

      How? If I understood you correctly you want to add rows dynamically while running, right? You will need to do it via code.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • T TimothyCole

        This post is deleted!

        Pl45m4P Offline
        Pl45m4P Offline
        Pl45m4
        wrote on last edited by Pl45m4
        #3

        @TimothyCole

        In addition to what @jsulm said:
        All you could do is creating a custom widget (UI in Designer) and promote it or add it at runtime to your parent layout.
        If you only need one or two, it's not efficient, but if you need like five or more layout rows with the same content (ComboBox + StackedWidget) and you dont want to use a static number of rows, it is worth it.

        Edit:
        There is also an QUiLoader [click] to load pre-designed UI-files at runtime (then you dont need to create a custom class for your content. Just insert your rows by loading your UI file multiple times and adding the result to your parent layout)


        If debugging is the process of removing software bugs, then programming must be the process of putting them in.

        ~E. W. Dijkstra

        1 Reply Last reply
        3

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved