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. Qt Installer Framework: Can't add items to a comboBox

Qt Installer Framework: Can't add items to a comboBox

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt ifw 2.0.3
3 Posts 2 Posters 1.0k 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.
  • TurBossT Offline
    TurBossT Offline
    TurBoss
    wrote on last edited by
    #1

    Hi

    I managed to create a target custom page with a combobox (ui)

    How I can add Items to the combobox?
    I have tryed widget.comboBoxName.addItems("test123")

    thx!

    1 Reply Last reply
    0
    • ZoptuneZ Offline
      ZoptuneZ Offline
      Zoptune
      wrote on last edited by
      #2

      Hi,

      The addItems method accepts a QList<QString> parameter.

      Use addItem to add just one QString

      1 Reply Last reply
      0
      • TurBossT Offline
        TurBossT Offline
        TurBoss
        wrote on last edited by TurBoss
        #3

        addItems was a spelling mistake

        i have

        widget.installComboBox.addItem("test123");
        

        and the ui

        <widget class="QComboBox" name="installComboBox">
        

        and doesn't work

        thx!

        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