QCAD Bugtracker

  • Status Assigned
  • Percent Complete
    0%
  • Task Type Feature Request
  • Category QCAD (main)
  • Assigned To
    Andrew
  • Operating System All
  • Severity Very Low
  • Priority Very Low
  • Reported Version 3.32.2
  • Due in Version Undecided
  • Due Date Undecided
  • Votes 1
    • CVH (16.04.2025)
  • Private
Attached to Project: QCAD Bugtracker
Opened by Chris Kaminski - 16.04.2025
Last edited by Chris Kaminski - 16.04.2025

FS#2662 - Sort Layouts with the same 'tab order' alphanumerical like other Blocks

Adding/inserting additional layout blocks in an order that makes sense to the user throws out system numbering out of order...
Unable to sort Layouts in alphanumerical order like other blocks.
Displaying Layout order number in the layout name is pointless since system cannot cope with non-chronological layouts.
Extract from the thread on the forum (linked below)

Finally traced back to a [url=https://github.com/qcad/qcad/blob/9965f5c6c29cc7419d26d37ebffe119d7511641b/src/core/RStorageBlockSort.cpp]sorting function[/url] called in line 247 (Current state):
- model space always first
- layouts always before other blocks
- sort among layouts by tab order
- sort by layout name or block name (ignoring * at start)
 :!: Notice that the last rule will never be reached when comparing 2 Layout objects with the same 'tab order'.
The third rule will return "false" anyway and things are left unsorted as they are queried from the document.

Meaning that we can force any listing order but only by editing the list order values.
CVH commented on 16.04.2025 12:40

Please denote Severity to 'Low' or 'very Low'.
It is not a critical issue that affects all users or makes QCAD crash.

The normal way to order Layouts in the Block List is by the Tab order property.
The issue only surfaces with equal Tab orders and those are set identical by you.

Regards,
CVH

Chris Kaminski commented on 16.04.2025 13:05

all my blocks are ordered/grouped alphanumerically to make it easy for me to find what I need

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing