Results 1 to 4 of 4

Thread: Understanding the .ui -> code connection in QT Creator

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 284 Times in 279 Posts

    Default Re: Understanding the .ui -> code connection in QT Creator

    Class Ui::MainWindow has public pointers to all elements of Yours ui. Just look into ui_mainwindow.h.

  2. #2
    Join Date
    Feb 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: Understanding the .ui -> code connection in QT Creator

    got it!

    thanks. not sure why they don't show this file in the create ui.

  3. #3
    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: Understanding the .ui -> code connection in QT Creator

    Quote Originally Posted by lucasvickers View Post
    not sure why they don't show this file in the create ui.
    It's because you don't have to use it. And really, it's better to hide it, because otherwise people going to change things inside the header file (even if there is a warning) and then complaining when changes are getting lost...
    You only have to take care about your ui file where you can see the names, with which you can access the objects. More you don't need. If you need the ui_*.h then you have to code your GUI by hand.

Similar Threads

  1. Replies: 21
    Last Post: 14th December 2009, 08:11
  2. Replies: 2
    Last Post: 28th August 2009, 07:12
  3. I need help understanding QGraphicsView
    By aarelovich in forum Qt Programming
    Replies: 13
    Last Post: 22nd July 2009, 20:02
  4. Replies: 0
    Last Post: 8th July 2009, 08:12
  5. How to turn off translator code in creator
    By sanfordpaul in forum Newbie
    Replies: 0
    Last Post: 4th March 2009, 23:39

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.