Results 1 to 4 of 4

Thread: What does this mean in the project file.

  1. #1
    Join Date
    Oct 2010
    Posts
    54
    Thanks
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Question What does this mean in the project file.

    Hi all I just have a quick query really.

    What does

    Qt Code:
    1. QT += core gui
    To copy to clipboard, switch view to plain text mode 

    mean in the project file?

    Thanks for your time and trouble

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: What does this mean in the project file.

    It means your app will be linked against QtCore and QtGui libraries.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Oct 2010
    Posts
    54
    Thanks
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: What does this mean in the project file.

    Hi thanks very much for that.

    Could you perhaps tell me what this means?

    Qt Code:
    1. Ui::LoginWindow *ui;
    To copy to clipboard, switch view to plain text mode 

    Is it creating a pointer to the ui namespace or something??

    Confused

  4. #4
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: What does this mean in the project file.

    No, it creates a pointer to a LoginWindow class instance, and class LoginWindow is defined in the Ui namespace.

    The uic provides an alternative name for the same class: ui_LoghinWindow.
    Take a look here if you need more information on different ways to use the ui file in your C++ code.

Similar Threads

  1. Project file to compile c++ file
    By hojoff79 in forum Newbie
    Replies: 1
    Last Post: 9th March 2011, 17:43
  2. Add hpp file to qt project
    By ruben.rodrigues in forum Newbie
    Replies: 7
    Last Post: 22nd December 2010, 22:05
  3. Replies: 3
    Last Post: 3rd August 2010, 13:12
  4. Replies: 1
    Last Post: 3rd December 2009, 23:34
  5. how can i run a project from only a .ui file in qt4
    By iamjayanth in forum Qt Programming
    Replies: 2
    Last Post: 23rd October 2008, 01:36

Tags for this Thread

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.