Closed micdeluca closed 1 year ago
I confirm
It seems that default scale are not listed anymore. In project properties, you can define predefined project scale and they are listed in combobox.
True, if you define the default scales at the individual project level the listbox works. However, you would expect the listbox to already work with the default scales at the general options level, and this does not happen.
It seems to me this issue may be related to commit https://github.com/qgis/QGIS/commit/26bf85f57b8828f1ada7a55eb21abf02973d44af from PR https://github.com/qgis/QGIS/pull/51728.
The problem is still present!!! It seems that default scale are not listed anymore.
https://user-images.githubusercontent.com/7631137/229541026-58bd95f9-d929-41c9-960c-06aebbd9b8d1.mp4
QGIS 3.30.1 e 3.31 MASTER
It works for me.
Do you have predefined scales in application settings (or is it blank)? if not, can you try again with a new profile in your project properties? if not, I guess they were deleted somehow.
In QGIS 3.30.1 the scale listbox works. Try restoring the default scales in Setting->Option->Map Tools.
@3nids @micdeluca
The problem is that they look like this: Setting->Option->Map Tools.
so it must be the end user to fix them
@3nids, using the same user profile created in QGIS 3.28:
in QGIS 3.28 the Predefined Scales (Setting->Option->Map Tools) are listed as:
while in QGIS 3.30 are listed as:
Creating a new user profile with QGIS 3.30, the Predefined Scales list is empty:
If I delete the predefined scales in the app settings and re-open QGIS they are set back to default. Can you try this?
And which commit are you using?
@3nids, QGIS 3.30.1 on Windows (OSGeo4W).
Using QGIS 3.30 with a new user profile, the Predefined Scales list (in Setting->Option->Map Tools) is empty, while it should contain the predefined scales like using QGIS 3.28 and previous versions with a new user profile.
QGIS 3.30 stores the scales in QGIS3.ini as scales=1:1000000, 1:500000, 1:250000, 1:100000, 1:50000, 1:25000, 1:10000, 1:5000, 1:2500, 1:1000, 1:500
while QGIS 3.28 and previous versions as scales="1:1000000,1:500000,1:250000,1:100000,1:50000,1:25000,1:10000,1:5000,1:2500,1:1000,1:500"
.
This seems to create a useless and preferably avoidable incompatibility.
See also https://github.com/qgis/QGIS/pull/52511.
The scales are saved as a QStringList and not a QString anymore. The change in the ini file is expected (see https://stackoverflow.com/a/27558297/1548052)
Can you go to the advanced settings, delete the scale setting: save and reopen QGIS?
Creating and using a new QGIS user profile with QGIS 3.30.1, the Predefined Scales list (in Setting->Option->Map Tools) is empty, while it should contain the predefined scales like using QGIS 3.28 and all previous versions.
Is this expected? It seems to me this is a bug.
In the Advanced Settings, the scales
setting is an empty QStringList
Deleting such setting (using the "Delete Settings..." command) and restarting QGIS doesn't fix the issue: the Predefined Scales list is empty.
In this case, in order to restore the predefined scales, an user should go to Setting->Option->Map Tools and click on the "Reset to default scales" button.
Using QGIS 3.30.1 with an user profile created by QGIS 3.28 and previous versions, using the "Delete Settings..." command in Advanced Settings to delete the scales
setting doesn't fix the issue even restarting QGIS.
In such situation, in order to fix the issue, an user should either
1:1000000,1:500000,1:250000,1:100000,1:50000,1:25000,1:10000,1:5000,1:2500,1:1000,1:500
scale in the Predefined Scales list (Setting->Option->Map Tools) using the "Remove selected scale" button and restart QGIS (then the scale
setting is displayed as of type Invalid
and value <Invalid>
in the Advanced Settings panel and as scales=@Invalid()
in the QGIS3.ini file)"The scales are saved as a QStringList and not a QString anymore": this means the QGIS user Profile <= 3.28 are incompatible with QGIS 3.30 and vice versa at least for the predefined map scales setting and the map scales list combobox. Is this expected? If yes, I think the users should be informed about such incompatibility. Anyway I would have preferred no incompatibility.
"The scales are saved as a QStringList and not a QString anymore": this means the QGIS user Profile <= 3.28 are incompatible with QGIS 3.30 and vice versa at least for the predefined map scales setting and the map scales list combobox. Is this expected? If yes, I think the users should be informed about such incompatibility. Anyway I would have preferred no incompatibility.
There is a migration of setting in place, so going from 3.28 to 3.30 should come without any issue to the user.
I wonder if you could try with https://github.com/qgis/QGIS/pull/52511 being merged now? (that might explain why I don't have any issue on my machine)
I wonder if you could try with #52511 being merged now?
Testing the MinGW64 Windows Build from PR https://github.com/qgis/QGIS/pull/52511:
Creating and using a new QGIS user profile with QGIS:
scales
QStringList setting, in QGIS3.ini there is a scales=
settingUsing QGIS with a QGIS user profile created by QGIS 3.28: same incorrect behaviour as before.
The author of the PR https://github.com/qgis/QGIS/pull/52511 stated that it does not fix this issue.
Question: Does the change from QString to QStringList change/affect the dropdown box's construction in the status bar?
I am working on a Windows 13'' laptop with Full HD 1080 and have to disable the mScaleWidget in the Status bar to read the other elements in the bar because the width of the dropdown box is claiming all the space on the bar, compressing all the other items. I think this is due to the length of the QStringList, and that the width of the dropdown box, in the current version, is obtained from the list of elements and not the longest string in the list.
What is the bug or the crash?
Scale listbox do not working in QGIS version 3.30.0-'s-Hertogenbosch.
Steps to reproduce the issue
Open QGIS and click on scale listbox.
Versions
QGIS version | 3.30.0-'s-Hertogenbosch | QGIS code revision | f186b8efe0e -- | -- | -- | -- Qt version | 5.15.3 Python version | 3.9.5 GDAL/OGR version | 3.6.2 PROJ version | 9.1.1 EPSG Registry database version | v10.076 (2022-08-31) GEOS version | 3.11.1-CAPI-1.17.1 SQLite version | 3.39.4 PDAL version | 2.4.3 PostgreSQL client version | unknown SpatiaLite version | 5.0.1 QWT version | 6.1.6 QScintilla2 version | 2.13.1 OS version | Windows 10 Version 2009 | | | Active Python plugins db_manager | 0.1.20 grassprovider | 2.12.99 MetaSearch | 0.3.6 processing | 2.12.99 QGIS version 3.30.0-'s-Hertogenbosch QGIS code revision [f186b8efe0e](https://github.com/qgis/QGIS/commit/f186b8efe0e) Qt version 5.15.3 Python version 3.9.5 GDAL/OGR version 3.6.2 PROJ version 9.1.1 EPSG Registry database version v10.076 (2022-08-31) GEOS version 3.11.1-CAPI-1.17.1 SQLite version 3.39.4 PDAL version 2.4.3 PostgreSQL client version unknown SpatiaLite version 5.0.1 QWT version 6.1.6 QScintilla2 version 2.13.1 OS version Windows 10 Version 2009 Active Python plugins db_manager 0.1.20 grassprovider 2.12.99 MetaSearch 0.3.6 processing 2.12.99 ### Supported QGIS version - [X] I'm running a supported QGIS version according to the roadmap. ### New profile - [X] I tried with a new QGIS profile ### Additional context _No response_