Menu

devel-oddsandends

Luis Garrido

Odds & Ends

Other widgets

XY, envelope. Perhaps subclassed from some kind of multivalued abstract widget?

FLAM rack

All the GUIs under one window? Mmm, make that a multitab window, one tab per OSC server URL? If a family of rackable UIs is used plus some position snapping it could make for a very compact and slick view.

How to publish the service, QSharedMemory perhaps? A well-known osc.udp port? The infamous dbus?

Use QDockWidget for snapping? Perhaps too limited. Just a QHBox (full tab) containing QVBoxes (rack columns) containing QHBoxes (rack rows) containing the UIs.

19" rack units use 1.75" as U height, that's a 10.8571 aspect ratio. I guess if a UI designer is targetting rackability power-of-2 modules make good choices: 16x16 px, etc.

http://en.wikipedia.org/wiki/19-inch_rack

http://en.wikipedia.org/wiki/Display_resolution

Frameless or framed? I'd say at least title bars should be necessary. They eat up some space but provide separation and allow to display the "user friendly" identifier supplied by DSSI.

Is necessary to provide a mechanism to save a session file with this arrangement? Preloaded UIs ready to be connected (connection indicator in the title bar)?

Multipixmaps

This is how you create a multipixmap with ImageMagick (the options are case-sensitive):

montage -mode Concatenate -background None -tile x1 button0*.png button.png

However QMovies seem a better alternative than multipixmaps:

convert slider*.png slider.mng

Qt parenting issues

Some reparenting methods worth remembering:

  • QMainWindow::setCentralWidget()
  • QLayout::addWidget()
  • QLayout::addLayout()
  • QLayout::QLayout(QWidget *parent)
  • QWidget::setLayout()
  • QTableWidget::setCellWidget()

... et al. Search for the word "ownership" or "reparent" in Qt Assistant.


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.