I am not sure where this post belongs, Designer or Qt Programming, but I get a compile error after I apply "Layout in a Grid" on a groupbox in Designer, so I start it here.
My IDE (Xcode 3.0) says "error: '1' cannot be used as a function"
pointing at several lines in the ui_mydialog.h file, e.g.:
In the ui file, the layout spacings for the groupbox is set to -1, and the margins are all 12, untouched by me.Qt Code:
gridLayout_13->setSpacing(1()); gridLayout_13->setMargin(1());To copy to clipboard, switch view to plain text mode
The layout looks nice, applying "Grid layout" on the groupbox arranges the contents better than without it.
Where is the problem?
If I manually edit out the offending lines 1() -> -1 it compiles, but this is not a solution I want to live with.
I am using Qt 4.4.0 for MacOSX.
Bookmarks