CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2012
    Posts
    3

    Qt c++ Problem with resizing widget

    Hi all

    I have QTextEdit in mainWindow. I'm trying to resize QTextEdit so height = mainwindow.height and width = height/2. That should change when I change the size of mainWindow during runtime.

    How can I do that?

  2. #2
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: Qt c++ Problem with resizing widget

    You can use the layout-grid in the resource editor. This automagically resizes everything on a widget when the widget is resized. Also, there are forums specially for QT (http://www.qtcentre.org/).

  3. #3
    Join Date
    Aug 2012
    Posts
    3

    Re: Qt c++ Problem with resizing widget

    thank you, but I fixed it by placing QSpacers.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured