Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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



  • 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!



  • Hi,

    The addItems method accepts a QList<QString> parameter.

    Use addItem to add just one QString



  • addItems was a spelling mistake

    i have

    widget.installComboBox.addItem("test123");
    

    and the ui

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

    and doesn't work

    thx!


Log in to reply