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. QWizard and default property
Forum Updated to NodeBB v4.3 + New Features

QWizard and default property

Scheduled Pinned Locked Moved Unsolved General and Desktop
qwizardqwizardpage
5 Posts 2 Posters 1.4k Views 2 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.
  • G Offline
    G Offline
    GrahamL
    wrote on 18 Jan 2016, 09:14 last edited by
    #1

    Hi
    I have a class derived from QWizard.
    In the constructor for this class I have the following line

    setDefaultProperty("QComboBox","currentText","currentIndexChanged");
    

    In my wizard page I have the following

    registerField("toolSystemComboBox", ui->m_toolSystemComboBox);
    

    But when I retrieve the field value it is using the current index of the combox box and not the current text

    QString s = field("toolSystemComboBox").toString(); // makes s equal the position in the combo box
    

    can anyone suggest what I have missed?

    Thanks

    1 Reply Last reply
    0
    • V Offline
      V Offline
      ValentinMichelet
      wrote on 18 Jan 2016, 10:34 last edited by ValentinMichelet
      #2

      setDefaultProperty("QComboBox","currentText","currentTextChanged");

      1 Reply Last reply
      0
      • G Offline
        G Offline
        GrahamL
        wrote on 18 Jan 2016, 10:45 last edited by
        #3

        Hi
        Thanks for the reply, however I am trying to set the default property for combo boxes to currentText

        1 Reply Last reply
        0
        • G Offline
          G Offline
          GrahamL
          wrote on 18 Jan 2016, 11:51 last edited by
          #4

          Hi
          Unfortunately this gives me the same result

          1 Reply Last reply
          0
          • V Offline
            V Offline
            ValentinMichelet
            wrote on 18 Jan 2016, 12:36 last edited by
            #5

            This is weird. Could you show me the source code please? so I can test it and try to figure it out.

            1 Reply Last reply
            0

            2/5

            18 Jan 2016, 10:34

            • Login

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