| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 5 | |
Hello, is there a way to set the central widget of a QMainWindow in Designer? If not, I imagine you'd do this in the constructor. thanks, eah -- [ signature omitted ]
On 25.07.07 09:38:31, eah wrote: > is there a way to set the central widget of a QMainWindow in Designer? If not, > I imagine you'd do this in the constructor. Uhm, well in designer you can design the content of the mainwindow's central widget. That is anything you put into the mainwindows central area will be part of the central widget. I'm not sure how exactly uic translates that into code, but I guess it adds a plain qwidget as central widget and then sets the layout you chose. Andreas -- [ signature omitted ]
On Wednesday 25 July 2007 09:53:11 Andreas Pakulat wrote: > On 25.07.07 09:38:31, eah wrote: > > is there a way to set the central widget of a QMainWindow in Designer? If > > not, I imagine you'd do this in the constructor. > > Uhm, well in designer you can design the content of the mainwindow's > central widget. That is anything you put into the mainwindows central > area will be part of the central widget. I'm not sure how exactly uic > translates that into code, but I guess it adds a plain qwidget as > central widget and then sets the layout you chose. > > Andreas but can designer cause the widget take maximum space? the attached screenshot illustrates what i want (i did this in code by creating a textedit and using setCentralWidget(textedit); also, if you can explain why my icons dont show up on the toolbar, i'd appreciate it. thanks, eah
Attachment:
Attachment:
screenshot.jpg
Description: JPEG image
Message 4 in thread
On 25.07.07 22:55:46, eah wrote:
> On Wednesday 25 July 2007 09:53:11 Andreas Pakulat wrote:
> > On 25.07.07 09:38:31, eah wrote:
> > > is there a way to set the central widget of a QMainWindow in Designer? If
> > > not, I imagine you'd do this in the constructor.
> >
> > Uhm, well in designer you can design the content of the mainwindow's
> > central widget. That is anything you put into the mainwindows central
> > area will be part of the central widget. I'm not sure how exactly uic
> > translates that into code, but I guess it adds a plain qwidget as
> > central widget and then sets the layout you chose.
> >
> > Andreas
>
> but can designer cause the widget take maximum space?
Sure, create a layout.
> also, if you can explain why my icons dont show up on the toolbar, i'd
> appreciate it.
No idea without some code.
Andreas
--
[ signature omitted ]
Message 5 in thread
On Thursday 26 July 2007 05:44:53 Andreas Pakulat wrote:
> On 25.07.07 22:55:46, eah wrote:
> > On Wednesday 25 July 2007 09:53:11 Andreas Pakulat wrote:
> > > On 25.07.07 09:38:31, eah wrote:
> > > > is there a way to set the central widget of a QMainWindow in
> > > > Designer? If not, I imagine you'd do this in the constructor.
> > >
> > > Uhm, well in designer you can design the content of the mainwindow's
> > > central widget. That is anything you put into the mainwindows central
> > > area will be part of the central widget. I'm not sure how exactly uic
> > > translates that into code, but I guess it adds a plain qwidget as
> > > central widget and then sets the layout you chose.
> > >
> > > Andreas
> >
> > but can designer cause the widget take maximum space?
>
> Sure, create a layout.
>
> > also, if you can explain why my icons dont show up on the toolbar, i'd
> > appreciate it.
>
> No idea without some code.
>
> Andreas
thanks.
the icons decided to show up today. :-)
eah
--
[ signature omitted ]