[QGIS-Developer] form font barely readable

Richard Duivenvoorde rdmailings at duif.net
Fri Sep 28 01:17:47 PDT 2018


On 09/28/2018 12:07 AM, Nyall Dawson wrote:
> On Fri, 28 Sep 2018 at 00:08, Richard Duivenvoorde <rdmailings at duif.net> wrote:
>> Using the I-tool and viewing via 'Auto open form', the attributes of a
>> feature are barely readable (see attached screenshot).

> Oh this has bugged me a LOT too! I'd very much like to see this
> changed, but I'm not sure if there's some rationale behind it I'm
> missing...
> 
> Nyall

Looking into this a little, we use make the widget 'enabled=false' I think?

What about instead only do 'readOnly=true'?
Then you 'miss' the visual cue that a form field is read only.
There could be a message when you try to edit the field?

Or in combination with 'frame=false' you would get a form in which the
fields do not like 'input fields'.

Mmm, was trying to look into this, to find out that we use a wrapper
around the widgets:

https://github.com/qgis/QGIS/blob/master/src/gui/qgsattributeform.cpp#L1077

Removing the
ww->setEnabled( enabled );
morphs the input in the default input of QGIS
ww does not have readonly or frame anymore

So more difficult then I hoped :-(

Richard

-------------- next part --------------
A non-text attachment was scrubbed...
Name: widget.png
Type: image/png
Size: 8110 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180928/07a6edf1/attachment-0001.png>


More information about the QGIS-Developer mailing list