jsoftware / qtide

Qt IDE
Other
44 stars 11 forks source link

vertical alignment #9

Open rdm opened 2 years ago

rdm commented 2 years ago

As my primary motivating example:

https://code.jsoftware.com/wiki/Guides/Window_Driver/ChildClasses#static

Create: wd'cc id static [staticbox] [left|right|center] [nowrap] [sunken|raised|panel]

Meanwhile, the linked qt documentation leads me to https://doc.qt.io/qt-5/qlabel.html#alignment-prop which says:

By default, the contents of the label are left-aligned and vertically-centered. (Testing shows that line feeds are respected here.)

Generally speaking, when working with text, it would also be desirable to be able to specify vertical alignment.

For example:

wd{{)n
  pc p closeok;
  cc t static;
  set t minwh 400 300;
  pshow;
  set t text *this is some text
hypothetically, it might represent a snapshot from a log
or something of that nature, where the total number
of lines is constrained but we do not know precisely
how many would be displayed visibly.
}}