Hi,
i want to set validator for Individual cells in a Qtable.
I tried using setValidator function() but using it gave an error.
How can i set validator for cell so that it can take only "T" & "R" as input.
thanks
regards
Raghvendra
Hi,
i want to set validator for Individual cells in a Qtable.
I tried using setValidator function() but using it gave an error.
How can i set validator for cell so that it can take only "T" & "R" as input.
thanks
regards
Raghvendra
I think you can reimplement this method
http://doc.trolltech.com/3.3/qtablei...l#createEditor, e.g. create QLineEdit and set needed validator and then return it.
Since the default editor type is QLine Edit for a QTable i used the following code
to implement the validator for a QTable
But this also didn't solved the problem.Qt Code:
t->setValidator(validator);To copy to clipboard, switch view to plain text mode
Plz tell me where is the problem.
Regards
Raghvendra
Last edited by jpn; 13th September 2008 at 15:49. Reason: missing [code] tags
Where did you place that piece of code? Inside the function proposed by spirit or somewhere else?
J-P Nurmi
Bookmarks