[Qt-interest] Toolbar layout
KC Jones
kc at asperasoft.com
Thu Oct 22 18:46:04 CEST 2009
I want to place a search widget in my QMainWindow toolbar. The
toolbar is fixed along the top of the window.
My problem is that I want it to be left justified. Just like every
other search tool on any other Mac app.
I has some success creating a QFrame based widget with the QLineEdit
(plus spyglass image, style sheet based rounding, etc.) inside along
with a horizontal spacer + layout. That was looking OK.
But when I call setUnifiedTitleAndToolBarOnMac(true); the layout fails
and the search widget is neither left aligned nor right aligned.
Oh, and the style sheet corner rounding also is ignored.
Is this just a bug? Anyone found a work around for this?
Using Qt4.5.3 on OS X 10.5.8
More information about the Qt-interest-old
mailing list