[commonqt-devel] The logical disjunction of constants

Ivan Shvedunov ivan4th at gmail.com
Sun Nov 4 18:27:46 UTC 2012


Hello.

On Sun, Nov 4, 2012 at 5:51 PM, Goheeca <goheeca at gmail.com> wrote:
> Is it possible to perform or-ing* of constants or CommonQt lacks this
> functionality?
> *Like in this C++ example:
> QLabel label("A label");
> label.setAlignment( Qt::AlignRight | Qt::AlignBottom );

You can use ENUM-OR, e.g.
(qt:enum-or (#_Qt::AlignRight) (#_Qt::AlignBottom))

--
Ivan Shvedunov <ivan4th at gmail.com>
;; My GPG fingerprint is: 2E61 0748 8E12 BB1A 5AB9  F7D0 613E C0F8 0BC5 2807





More information about the commonqt-devel mailing list