Results 1 to 7 of 7

Thread: QDialog dynamic size.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,372
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QDialog dynamic size.

    Quote Originally Posted by hickscorp View Post
    i saw this, but the problem is, the dialog i'm talking about is constructing the layout in from the .ui, and i dont know how to access (get a ptr) to the layout object to do the size constraint...
    Each object created from ui file is a member of the UI, so you can access it directly though the pointer.

    [EDIT:] The layout pointer which is generated in the CPP file is named "vboxLayout" and is public. So my new question is, is this name "vboxLayout" some "nomenclature" which i can be 100% sure will have the same name in future version of QT?
    You already have the ui, so it's name won't change. All objects in ui files are assigned to a member of the generated class which is named after the objectName property. It's a global convention, so I'm pretty sure it'll stick. And if not, you can always access the object through its name.

    BTW. It's Qt, not QT. The latter is Apple technology.

  2. The following user says thank you to wysota for this useful post:

    hickscorp (26th April 2007)

  3. #2
    Join Date
    Dec 2006
    Posts
    160
    Thanks
    33
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QDialog dynamic size.

    Oooh very good. Well it answer my question, i'll stick to using the pointer name i got from the CPP generated from the UI.

    And about the Apple thing, i'm not surprised at all and glad to learn this came "from" them ^^

    Thanks again!
    Pierre.

  4. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,372
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QDialog dynamic size.

    You mean Quick Time? I think it's their primary software technology...

Similar Threads

  1. Restrict size of QLineEdit
    By bruccutler in forum Newbie
    Replies: 2
    Last Post: 19th March 2007, 16:31
  2. Resizing a QDialog to the content size
    By Nyphel in forum Qt Programming
    Replies: 8
    Last Post: 15th March 2007, 08:16
  3. Replies: 1
    Last Post: 24th October 2006, 16:40
  4. Replies: 6
    Last Post: 5th March 2006, 21:05
  5. Qt 4.1.1 linker warnings
    By Matt Smith in forum Installation and Deployment
    Replies: 0
    Last Post: 26th February 2006, 22:14

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
  •  
Qt is a trademark of The Qt Company.