I do this

   oWnd:resize( 1024, 768 )

   oDA    := QWidget():new( oWnd )
   oWnd:setCentralWidget( oDA )


and then

   oFont := QFont():New()
   oFont:setFamily( "courier new" )

   oEdit := HBQPlainTextEdit():new( oDA:pPtr )
   oEdit:ensureCursorVisible()
   oEdit:highlightCurrentLine( .t. )
   oEdit:move( 0 , 0 )
   oEdit:resize( 900 , 500 )


But when I resize the mainwindow , the editor not change

Bruno

2010/2/15 Pritpal Bedi <[email protected]>

>
>
> Bruno Luciani wrote:
> >
> > I have  a widget in a mainwindow related to  HBQPlainTextEdit() and I
> need
> > when main window is resized
> > that widget do the same in automatically form, adapting himself to
> > mainwindow size
> >
> > I don't find any slot or signal related to this and i don't know how todo
> > this
> >
>
> oMainWindow:setCentralWidget( oPlainTextEdit )
>
>
> -----
>                 enjoy hbIDEing...
>                    Pritpal Bedi
> _a_student_of_software_analysis_&_design_
> --
> View this message in context:
> http://n2.nabble.com/Qwidget-Resize-tp4575860p4575936.html
> Sent from the harbour-devel mailing list archive at Nabble.com.
> _______________________________________________
> Harbour mailing list (attachment size limit: 40KB)
> [email protected]
> http://lists.harbour-project.org/mailman/listinfo/harbour
>
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to