Results 1 to 2 of 2

Thread: a derived QGLWidget displays as a very samll image in the top left corner of a QFrame

  1. #1
    Join Date
    Sep 2008
    Posts
    17
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default a derived QGLWidget displays as a very samll image in the top left corner of a QFrame

    hi all,

    I am using QT3 in Linux.

    I derived a widget named drawWidget from QGLWidget. In my user interface, I created a QFrame named drawFrame and used to hold drawWidget. That means that drawFrame is the parent widget of the drawWidget:

    drawWGT = new drawWidget( data, drawFrame, "Line editor");

    But when the program runs, the drawWidget always displays as a very small image in the top left corner of the drawFrame. Would you please show me any information on how to stretch the drawWidget to fill the drawFrame?

    Thanks a lot!

    James

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: a derived QGLWidget displays as a very samll image in the top left corner of a QF

    Did you use layouts properly ???
    Such prob usually occur when u create a child widget and forget to put it in a layout. The child is shown at (0,0) of the parent widget.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.