Results 1 to 5 of 5

Thread: Qt4 - VisualStudio 2005

  1. #1
    Join Date
    May 2007
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Qt4 - VisualStudio 2005

    Evaluating Qt4 on WindowsXP with Visual Studio 2005.

    I have searched the forums, and find vague responses (fiddle with SizePolicy, etc) that do not seem to have any effect in my situation.

    Cannot seem to get any layout to function at all. I have read the documentation, gone through the QtDesigner docs, doing the "Qt Integration for VS" tutorial.

    They all say, drop a couple widgets, select and apply a layout. But either running it in preview or building and running, stretching the dialog has no effect on the widgets contained therein.

    What do I have to do to get a layout to function as expected? What am I missing please?

    Thanks,
    Jeff

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Qt4 - VisualStudio 2005

    Sounds like you're missing the top level layout. Layouting a group of children constructs a "floating layout" but you want a layout installed on the form itself. Deselect all child widgets, open up context menu over the background of the form and choose "Layout->...".
    J-P Nurmi

  3. #3
    Join Date
    May 2007
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt4 - VisualStudio 2005

    Thanks J-P!!! That was it. Nothing, and I mean nothing, in the docs mentioned anything about this. I merely followed the instructions in the tutorial. Thanks.

    Also, in the docs, I can find nothing about properties that control resizing behavior and what each does. For example, the help on VerStretch says Sets the VerStretch property. Truly frustrating, but the usual state of documentation in the software industry.

    So - anything you can provide or point me to on this please?

    Thanks again,
    Jeff

  4. #4
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt4 - VisualStudio 2005


  5. #5
    Join Date
    May 2007
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt4 - VisualStudio 2005

    Quote Originally Posted by marcel View Post
    Thank you. That is in the docs under Layout Management. Great resource.

    Jeff

Similar Threads

  1. Qt + gSoap + Visual Studio 2005
    By xgoan in forum General Programming
    Replies: 3
    Last Post: 17th December 2007, 18:27
  2. Qt 4.2.3 with MSVC 2005 and MySQL
    By whitefurrows in forum Qt Programming
    Replies: 4
    Last Post: 3rd May 2007, 16:32
  3. ISO/ANSI standard with Visual studio 2005
    By moowy in forum General Programming
    Replies: 7
    Last Post: 16th April 2007, 12:04
  4. QString in Visual Studio 2005 has compile error
    By KaKa in forum Qt Programming
    Replies: 8
    Last Post: 14th March 2007, 10:05
  5. Qt-4.2.2 qmake won't compile under visual studio 2005 on vista
    By moowy in forum Installation and Deployment
    Replies: 7
    Last Post: 13th January 2007, 21:06

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.