[Qt-interest] Variable space between toolbar icons?

Jesus Fernandez jsfdez at gmail.com
Sun Jul 17 09:50:55 CEST 2011


QToobar has the function:  QToolBar::addWidget

You can create a widget with the desired layout and add it to the Toolbar. I
haven't tried it.

Good luck.

On Sun, Jul 17, 2011 at 00:54, Bob Babcock <wssddc at nospam.gis.net> wrote:

> I just built my first Qt application for Android.  (It's really a Windows
> application.  It seems to work on Android with no source code changes.)
> Anyway, it's got a toolbar, and if I'm going to trigger that with my big
> fingers instead of a mouse, I'd like to space the icons as widely as
> possible.  I can adjust the spacing with a stylesheet:
>  ui->toolBar->setStyleSheet("spacing: 20px");
> but I'd really like automatically adjusting spacers like I use in layouts.
> Can this be done?
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110717/ac6051ae/attachment.html 


More information about the Qt-interest-old mailing list