Hi
I have a QFrame *frame A and I want to place a QFrame *helpFrame in it
Qt Code:
  1. emit displayHelpFunction( frameA, &helpFlag);
  2. frameA->show();
To copy to clipboard, switch view to plain text mode 
and the code in the sub-frame is
Qt Code:
  1. void HelpFunction::slotDisplayHelpFunction( QFrame *sourceFrame, bool *flag )
  2. {
  3. if ( *flag == false)
  4. {
  5. helpFrame = new QFrame( sourceFrame );
  6. helpFrame->setFrameShape( QFrame::StyledPanel );
  7. helpFrame->setGeometry( 10, 10, 200, 400 );
  8. teHelpBox= new QTextEdit( helpFrame );
  9. teHelpBox->setGeometry(10,10, 180, 380);
  10. teHelpBox->setPlainText( "Now is the time" );
  11. helpFrame->show();
  12. *flag = true;
  13. }
  14. else if ( *flag == true )
  15. {
  16. *flag = false;
  17. helpFrame->hide();
  18. }
  19. }
To copy to clipboard, switch view to plain text mode 
and it works fine, with the "helpFrame" in the upper left corner of "frameA", but I want line 7. in terms of the "width" and "height" of frameA.
I don't want to use "spacers" or a "paint" event to get these dimensions if I can help it.

help would be most appreciated.