I have created a mainWindow with menubar and toolbar.
When I click a tool in a toolbar, function should return a layout.
how can I write a function?

Or you can simply use move to move the widgets around.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.