Results 1 to 3 of 3

Thread: Source code export from Qt Creator

  1. #1
    Join Date
    May 2013
    Posts
    3
    Thanks
    1
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Source code export from Qt Creator

    Hello.

    I want to create dialog in which several layouts could be loaded. Set layout of layouts are chosen by addLayout method. So the UI is not static.

    My idea is to create general dialog and different layout to which parent is passed as a parameter.

    But I want to create a UI using Creator. Can I receive a source could for UI created in Qt Creator? Or should I create it manually?

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Source code export from Qt Creator

    One important thing while using the designer forms is that the forms can only be loaded on to QWidget (not QLayouts), so you will need to have a containter QWidget in each of the layouts, and load the ui into the container QWidgets using the setupUi(QWidget *).
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  3. The following user says thank you to Santosh Reddy for this useful post:

    Gera777 (17th May 2013)

  4. #3
    Join Date
    May 2013
    Posts
    3
    Thanks
    1
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Source code export from Qt Creator

    Thanks for your comment.

    I've used word 'layout' not like type name) And how about source import from UI file or Qt Creator?


    Added after 53 minutes:


    Oh. I understood how to do it. Thanks again.
    Last edited by Gera777; 17th May 2013 at 14:21.

Similar Threads

  1. Export/share code snippets?
    By fonzi337 in forum Qt Tools
    Replies: 3
    Last Post: 24th October 2013, 12:47
  2. Replies: 0
    Last Post: 21st October 2010, 08:18
  3. Qt Creator How to make Creator be aware of the Qt source code project?
    By kartwall in forum Qt Tools
    Replies: 5
    Last Post: 27th September 2010, 08:39
  4. source code
    By Colx007 in forum Newbie
    Replies: 5
    Last Post: 19th December 2007, 09:15
  5. Qte source code
    By Gaurav vyas in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 1st July 2007, 14:11

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.