Results 1 to 7 of 7

Thread: Add a QT Desgner form and how to use it ?

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    56
    Thanked 1 Time in 1 Post

    Default Add a QT Desgner form and how to use it ?

    When I do this, QT creates only the ui file.
    To use it , must I write the h a cpp files by hand ? Any tool can do it by me ?

    I dont understand the QT comment
    Creates a Qt designer form.... This is useful if you already have an existing class for the UI business logic

    Is there any way to use it in a fast and direct way ?
    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Add a QT Desgner form and how to use it ?

    What about reading the designer manual. It will tell you everything. or just use "create designer formula class" or something like that in the new menu.

  3. #3
    Join Date
    Sep 2010
    Posts
    654
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    56
    Thanked 1 Time in 1 Post

    Default Re: Add a QT Desgner form and how to use it ?

    I have read this manual
    Mi ask is about the work to do ...
    In case of use a QT Desgner form (not the complete 'designer form class') you have the ui, QT makes the h for the form and later if you want to use it ....
    Should not be a tool that would create the class ? I dont think that is does not exist .
    Everyone will want to use it, it does not take sense to do 'by hand' , isn't it ?

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Add a QT Desgner form and how to use it ?

    Well adding 4 lines isn't so much work. And then you have different approaches on how to implement your form. And to answer the question direct: there is no such a tool.
    I also can hardly think of a scenario where you just build a ui and decide later on to use it with a class. Normally that decision is made before.

  5. #5
    Join Date
    Sep 2010
    Posts
    654
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    56
    Thanked 1 Time in 1 Post

    Default Re: Add a QT Desgner form and how to use it ?

    Yes, your right. But anybody (QT-Nokia) can automatize it. It does not write 4 lines, it is open 2 other files (h and cpp) and write all correct (In my opinion is a unneccesary origin of possible errors). But .. Ok, nothing to say.

    For little dialogs may be interesting to use QUiLoader ?
    And, My qt says me QUiLoader not found ????
    Thanks

  6. #6
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Add a QT Desgner form and how to use it ?

    you need to add
    CONFIG += uitools
    to your pro file.

  7. #7
    Join Date
    Sep 2010
    Posts
    654
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    56
    Thanked 1 Time in 1 Post

    Default Re: Add a QT Desgner form and how to use it ?

    thank you very much (And for your patience..)

Similar Threads

  1. Pass variable from a form to another form
    By dark1988 in forum Qt Programming
    Replies: 5
    Last Post: 8th February 2011, 18:19
  2. Replies: 5
    Last Post: 12th March 2010, 21:43
  3. Help me to load one form over another form PushButton
    By wagmare in forum Qt Programming
    Replies: 7
    Last Post: 26th November 2008, 16:11
  4. Hiding a form and opening another form
    By anafor2004 in forum Newbie
    Replies: 1
    Last Post: 20th February 2008, 15:04
  5. Calling a new form from current form
    By webgenius in forum Qt Programming
    Replies: 7
    Last Post: 8th April 2007, 19:50

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.