Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add tooltip on fields in identify window / attribute window / feature form #15144

Closed
qgib opened this issue May 9, 2012 · 4 comments · Fixed by #35188
Closed

add tooltip on fields in identify window / attribute window / feature form #15144

qgib opened this issue May 9, 2012 · 4 comments · Fixed by #35188
Labels
Feature Request GUI/UX Related to QGIS application GUI or User Experience

Comments

@qgib
Copy link
Contributor

qgib commented May 9, 2012

Author Name: Regis Haubourg (@haubourg)
Original Redmine Issue: 5559

Redmine category:gui


Many times, fields name are short and not explicit enough to understand their meaning.
Comments are already available in fields properties and are perfect for that. Thoses comments are really nicely integrated when using Postgis.

I would love to have tooltips displaying comments, real name if alias is used and maybe field type and precision. see attached pictures for examples
Anyone interested in it?


@qgib
Copy link
Contributor Author

qgib commented May 9, 2012

Author Name: Regis Haubourg (@haubourg)


Here is the picture


  • 4453 was configured as qgis_field_comment_tooltip.jpg

@qgib
Copy link
Contributor Author

qgib commented Oct 6, 2012

Author Name: Pirmin Kalberer (Pirmin Kalberer)


  • fixed_version_id was changed from Version 2.0.0 to Future Release - Nice to have

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0

@qgib qgib added Feature Request GUI/UX Related to QGIS application GUI or User Experience labels May 24, 2019
@qgib qgib added this to the Future Release - Nice to have milestone May 24, 2019
@suricactus
Copy link
Contributor

suricactus commented Mar 18, 2020

This is easy to fix and nice to have. I would suggest to add a function QString QgsField::displayNameTooltip(), that returns the desired tooltip, similar to QgsField::displayNameWithAlias() and QgsField::displayName(). This way the field tooltips can be unified across the tools and plugins. The current situation to display the field name once again as a tooltip is useless.

image

suricactus added a commit to suricactus/QGIS that referenced this issue Mar 24, 2020
…indow / feature form

- added new `QString QgsField::displayType( const bool showConstraints = false )` to unify the display of field types whenever length or precision are present
- added new argument `expression` to `QgsFieldModel::fieldToolTip( const QgsField &field, const QString &expression = QStringLiteral() )`. Now the tooltip shows "<alias> (<field>)\n<type>\n<comment>\n<expression>" with appropriate formatting
- added meaningful field tooltips in the "Identify Results" dialog
- field tooltips show the same content in "Feature Attributes" form, "Attribute Table" and "Identify Tool"

Fixes qgis#15144
nyalldawson pushed a commit that referenced this issue Mar 25, 2020
…w / feature form

- added new `QString QgsField::displayType( const bool showConstraints = false )` to unify the display of field types whenever length or precision are present
- added new argument `expression` to `QgsFieldModel::fieldToolTip( const QgsField &field, const QString &expression = QStringLiteral() )`. Now the tooltip shows "<alias> (<field>)\n<type>\n<comment>\n<expression>" with appropriate formatting
- added meaningful field tooltips in the "Identify Results" dialog
- field tooltips show the same content in "Feature Attributes" form, "Attribute Table" and "Identify Tool"

Fixes #15144
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request GUI/UX Related to QGIS application GUI or User Experience
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants