qvalidator Questions

2

Solved

I have a QTableView and I want to validate user input. If user insert an invalid value in a cell of the QTableView, I want to highlight that cell and disable a QPushButton. How can I achieve this?...
Oletta asked 28/10, 2014 at 17:27

7

I'm trying to apply validator in a line edit box in Qt 4.2 and it is not working: QDoubleValidator *haha= new QDoubleValidator(this); haha->setBottom(0.00); haha->setDecimals(2); haha-&g...
Effy asked 12/4, 2012 at 7:31

3

Solved

I am trying to use QValidator descendants (actually in PyQt5, but that shouldn't matter) to validate a series of line-edits. A small excerpt is: class IPv4(QWidget): def __init__(self): super(I...
Cheeseparing asked 7/10, 2019 at 23:57

1

Solved

QLineEdit has a signal QLineEdit::editingFinished that gets emitted when the user finished editing, for example by pressing enter. However if a validator or an input mask was set, then editingFinis...
Loosejointed asked 17/9, 2016 at 22:1
1

© 2022 - 2024 — McMap. All rights reserved.