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 auto add line-edit and Label?
Forum Updated to NodeBB v4.3 + New Features

How to auto add line-edit and Label?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 356 Views
  • 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.
  • S Offline
    S Offline
    Sapok_5
    wrote on last edited by
    #1

    i'm creating a voting system and i'm stuck with a problem. i want to make a Qt application that asks Admin number of candidates to be participated in system and auto add lables for picture and line edits for name to be put on to..
    example:

    enter number of cadidate: (say) 4;
    now, the I want to make my QT understand there are 4 candidates so i can create 4 space for puting their data.

    JonBJ 1 Reply Last reply
    0
    • S Sapok_5

      i'm creating a voting system and i'm stuck with a problem. i want to make a Qt application that asks Admin number of candidates to be participated in system and auto add lables for picture and line edits for name to be put on to..
      example:

      enter number of cadidate: (say) 4;
      now, the I want to make my QT understand there are 4 candidates so i can create 4 space for puting their data.

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by
      #2

      @Sapok_5
      You would either have to have, say, a vertical layout holding horizontal layouts with the widgets, and for new ones you would add to the vertical layout a new horizontal layout with new widgets on it. Or, by the sound of it, you should consider using a QListView or QTableView so that you can new rows. If you will only want a picture and a line edit QListView may suffice, if you might add further columns QTableView might be preferable.

      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