Results 1 to 4 of 4

Thread: New to Qt Developer 4.8

  1. #1
    Join Date
    Feb 2016
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default New to Qt Developer 4.8

    Hi guys/girls

    I'm working on a project at work; I've picked up the software halfway through a project to find they have been using Qt Developer 4.8

    I have a few questions that will probably be obvious to so many of you.

    First of all.

    Developer; the .ui file that is created, is that all you get when using developer? ie you don't get an .cc or .h file?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: New to Qt Developer 4.8

    Since there is no Qt Developer 4.8 we'll assume you mean Qt 4.8

    Regarding your question:
    you can create .ui files stand-alone, but usually you will also have a .h and .cpp file for the class that is using the code generated from the .ui file.

    Cheers,
    _

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: New to Qt Developer 4.8

    The qmake utility has the FORMS variable to list the UI files from Designer, arrange their processing through uic (UI compiler) to produce header and source matching the UI design (blah.ui --> ui_blah.h and ui_blah.cpp), and ensure they are compiled and linked into the project. The Qt Creator IDE has wizards that will produce skeleton header and source files to wrap the files generated by uic as a starting point for application code. You can, of course, write these manually.

  4. #4
    Join Date
    Feb 2016
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: New to Qt Developer 4.8

    Thanks guys.

    It doesn't look like they've used qmake or UIC.

    I'll double check tomorrow by running UIC on the .ui file to see if I get something similar to the .cc and .h files.

    How does the cpp link to the ui? is there a simple explanation?

Similar Threads

  1. Replies: 3
    Last Post: 27th June 2012, 06:35
  2. Good Developer vs Bad Developer
    By wysota in forum General Discussion
    Replies: 30
    Last Post: 13th December 2010, 16:16
  3. GUI Developer -QT
    By KevinB in forum Jobs
    Replies: 5
    Last Post: 18th May 2010, 23:02
  4. Replies: 2
    Last Post: 1st May 2010, 16:05

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.