Results 1 to 3 of 3

Thread: resizing a renderwindow

  1. #1
    Join Date
    Jun 2010
    Posts
    3

    Default resizing a renderwindow

    Hi,

    Im having a Main Window holding a ogrewidget (Ogre RenderWindow) in the central widget. Id like to have the ogrewidget fullscreen. I ve tried the global size() method and the one of the central Widget. But Im not getting the correct size. I cant set the ogreWidget as central Widget because i had to overwrite the paint method, which means i cant show other widgets except dockwidgets.

    QSize windowSize = ui.centralWidget->size();
    //windowSize = size();
    ogreWidget->resize(windowSize.height(),windowSize.width())

    Is there any other way to get the correct size of the application? Btw the application is fullscreen anyways, maybe there is another easy solution.

  2. #2
    Join Date
    Jun 2010
    Posts
    31
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: resizing a renderwindow

    I think that resize should work correctly. Perhaps you are experiencing troubles because your width and height are switched.

  3. #3
    Join Date
    Jun 2010
    Posts
    31
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: resizing a renderwindow

    Errrmmm....to be more specific:
    ogreWidget->resize(windowSize.width(),windowSize.height())

Similar Threads

  1. Replies: 3
    Last Post: 2nd March 2010, 20:58
  2. Resizing in QGraphicsView
    By A.H.M. Mahfuzur Rahman in forum Qt Programming
    Replies: 1
    Last Post: 21st June 2009, 09:39
  3. QScrollArea and resizing
    By rarefluid in forum Qt Programming
    Replies: 8
    Last Post: 22nd July 2007, 14:18
  4. QToolBar not resizing
    By vermarajeev in forum Qt Programming
    Replies: 1
    Last Post: 14th July 2007, 18:33
  5. QMdiSubWindow resizing in 4.3
    By kalpa in forum Qt Programming
    Replies: 0
    Last Post: 4th June 2007, 13:39

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.