Hi,

  not that I'm counting myself among any group of experts in anything,
except perhaps verbose digression, but let me try. First, I don't know if
I'm getting you right: do you mean you have a text label and next to it
(horizontally), say, a button, and you want the base line of the text in the
label and the lowermost pixel of the button's graphics have the same
vertical coordinate? Wouldn't this look a bit weird? Usually it's the text
inside the button which is vertically aligned to the baseline of the text in
the label widget. That's what I'm seeing in the apps lying around my
cluttered desktop right now, and what a QBoxLayout does with a QLabel and
QPushButton.

  Now, if you meant, what's the way to *code* it in QT, then I'll say,
Q(H|V)*BoxLayout:


QWidget *widget = new QWidget;

QHBoxLayout *layout = new QHBoxLayout;
layout->addWidget(whatever1);
//(...)
layout->addWidget(whateverN);

widget->setLayout(layout);


Please excuse me if this was too basic stuff for you, or if you had
something altogether different in mind.

Regards,
________________
Miguel de  Benito.


On Mon, Nov 8, 2010 at 14:11, Joris van der Hoeven <[email protected]>wrote:

> Hi all,
>
> Just a quick question for one of the Qt specialists:
> what is the recommended way in order to vertically align
> text fields, buttons, input fields, etc. at the baseline of the text?
>
> Best wishes. --Joris
>
> _______________________________________________
> Texmacs-dev mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/texmacs-dev
>
_______________________________________________
Texmacs-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/texmacs-dev

Reply via email to