whoops...check that,...I found my problem...

I was registering the comboBox field like this

     self.registerField("CategoryField"   , self.CategoryComboBox

I finally found a example on Nullege, that added an extra argument,
resulting in:

    self.registerField("CategoryField"   , self.CategoryComboBox,  
"currentText" )

and that did the trick! ;-)

(..now I wonder if I need to include that extra argument if I do a
  "setField" later ? )




--- On Fri, 1/7/11, James Polk <[email protected]> wrote:

From: James Polk <[email protected]>
Subject: Wizards and fields
To: [email protected]
Date: Friday, January 7, 2011, 6:59 PM


I have a curiously frustrating problem concerning using fields
in Wizards,...Their definition seems straightforward enough,
and I had been using them in conjunction with isComplete functions,etc..

However,..here's my problem...
I've created a new field based on the current setting of a ComboBox.
This is created in "Step 2".  Later, in Step 3, I go to fetch the value
of this field...wanting to get "currentText", but instead I get a 
currentIndex value...How can I get the text and not the index?

Many Thanks,
-James




      


      
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to