Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Spanish
  4. Ayuda con combobox
Qt 6.11 is out! See what's new in the release blog

Ayuda con combobox

Scheduled Pinned Locked Moved Unsolved Spanish
2 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.
  • L Offline
    L Offline
    luisvillegas2
    wrote on last edited by
    #1

    Saludos
    Tengo el sgte código QML:

    ComboBox {
    id: serverInput
    editable: true
    model: theLogin.servers();

    property var aString: theLogin.server();
    property int servidorUltimo: find(aString);

    onCurrentIndexChanged: console.debug(cbItems.get(currentIndex).text + “, ” + cbItems.get(currentIndex).color)
    Keys.onReturnPressed: conectarBoton.clicked(Qt.LeftButton);
    Component.onCompleted: currentIndex = servidorUltimo;
    }

    Necesito que cuando modifique los datos del combobox, se genere un append en la lista del combo, esta lista la tomo de un registro en el regedit de windows.

    Muchas gracias por su ayuda,

    1 Reply Last reply
    0
    • juankiJ Offline
      juankiJ Offline
      juanki
      Moderators
      wrote on last edited by
      #2

      Hola

      No puedo ayudarte mucho, QML es mi "asignatura pendiente" dentro de Qt, y quiero ponerme con ello, pero el tiempo manda.

      Imagino que ya te has mirado la documentación.

      Un saludo

      Intenta explicar el problema lo más claro y detallado posible. Adjunta los errores y el código que creas da el error.
      Procura escribir correctamente y sin faltas de ortografía.

      Si la duda se solucionó, por favor, marca el tema como 'solucionado'.

      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