[Interest] Best way to implement a line edit with breaks
Scott Bloom
scott at towel42.com
Wed Apr 23 05:34:06 CEST 2025
Over the years this has come up to my a couple of times, and I wanted to get the hive's opinion
The "easiest" example is the entry for an IP address, but it could be for any string of numbers (or letters) where there are sub strings in one larger string
For an IP address, you often see 4 smaller line edits. But if there are 12 substrings, that becomes a pain to handle.
Ideally Im thinking to present it in a similar fashion to the hex side of hex editor.
Where each "grouping" has a space between them, this of course means a custom painter etc etc
Any thoughts? Anyone seen a widget similar to what Im asking for?
Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20250423/85bb4c58/attachment.htm>
More information about the Interest
mailing list