Results 1 to 3 of 3

Thread: Newbie needs advice on moving to designer

  1. #1
    Join Date
    Mar 2007
    Posts
    59
    Thanks
    7

    Question Newbie needs advice on moving to designer

    All,

    I bought the book on QT "C++ Gui Programming with QT" and have successfully written a couple small apps. I hand coded these things in Kwrite (although i see here that KDevelop is by far the way to go -- opinions here are encouraged).

    Now I am trying to start a new app by using the Designer tool. I am having a difficult time knowing what i need to do by hand, and what the tool will create for me...

    For example. I have a new MainWindow.ui with all kinds of cool widgets.. To just make it complie (without any functionality) is all i need a main.cpp? or do i need to create a mainwindow.h to declare all the classes for QMenu, QLabel etc?

    Its a bit confusing because the all the books focus on hand coding all the interfaces, but designer is so easy to use... and nothing states that you only need to provide a, b, c, etc.

    I would just stay hand coding, but my interfaces are getting more complex and it will save tons of time...

    any resources are appreciated.

    TIA.

    Chris

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Newbie needs advice on moving to designer

    Quote Originally Posted by nbkhwjm View Post
    To just make it complie (without any functionality) is all i need a main.cpp? or do i need to create a mainwindow.h to declare all the classes for QMenu, QLabel etc?
    You still need main() and a class that represents the window --- the code generated from .ui file will only create widgets and place them in proper places.

    Read this: http://doc.trolltech.com/4.2/designe...component.html

  3. #3
    Join Date
    Mar 2007
    Posts
    59
    Thanks
    7

    Default Re: Newbie needs advice on moving to designer

    Thanks I'll go through that page...

Similar Threads

  1. Replies: 13
    Last Post: 15th December 2006, 11:52
  2. How to create custom slot in Qt Designer 4.1?
    By jamadagni in forum Qt Tools
    Replies: 31
    Last Post: 18th January 2006, 20:46

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.