Qt Creator, C++, Xcode - c++

I'm a C++ developer and I would like to develop applications for OSX and IOS with my Mac.
I'd like to use Xcode to achieve these goals but apparently the best solution (that involves C++) is Qt Creator. (Let me know if I'm wrong)
Can I use the free version of QT Creator (community - no license fee) to code in C++ for iOS/OSX and publish my apps on the Apple Store or do I need the indie mobile license?
Can QT be integrated in Xcode?
Thank you

I'm just getting into OS X and iOS development using Qt 5.3.2. It looks like that you use Qt Creator to create an iOS (or OS X) project. Then, Qt Creator makes use of Xcode for the build.
I've successfully created a OS X project using Qt Creator. It is a QML project with a C++ plugin that I created. So, I believe that you can use Qt Creator to create a pure C++ project for OS X. But give Qt Creator a shot and see if that is true.
Now, for iOS, I think you'll have to create a QML project. You can always use C++ to add functionality. However, I am having trouble getting a C++ plugin to compile in an iOS project. But, I think that it is just a matter of finding the solution.

The workflow for OSX/iOS app development is quite simple. You develop your application as usual in Qt Creator. Each time qmake is called on your code, it created an Xcode project xxx.xcodeproj where xxx is the application name specified in your .pro file.
Hence, when you have completed the development process, you can open such a project and finalize the app packaging/submission via xcode. The created project includes all the necessary framework dependencies and is ready to be archived, i.e. packaged for AppStore submission. The submission is a tedious task, see here for example.
You can absolutely submit the app to the AppStore, even with the community license. Mind that you are subject to LGPL. This aspect is treated in full detail in this recent blog post.

If you're developing for iOS and OS X only - use native tools, i. e. Xcode. Qt library and Qt Creator IDE are best used for cross-platform development, but not for native OS X development.

Related

How to integrate Qt in Eclipse

I install latest version of Eclipse IDE for C/C++ Developers.
I want to integrate Qt in Eclipse IDE.
How I can do that.I do not have QT install on my PC.
Thanks in advance.
I can't say how well it works, but there's a guide on the Qt Wiki: https://wiki.qt.io/Install_Eclipse_on_Linux
I'd personally say that Qt Creator is a lot better than Eclipse when it comes to building Qt applications, especially if you want to do anything with Designer files.

QT creator and Qt ( just itself) difference - Starting QT

I'm asking for a good re-confirmation! (don't take it otherwise).. As I'm quite new in the Qt platform, I've found it quite confusing!! In Windows platform, you've: Qt 5.4.1 for Windows 32-bit (VS 2012, OpenGL) which is a whooping 644 MB file! & also the info about "Qt Creator" in download says:
Blockquote Qt Creator 3.3.1 is included in the Qt 5.4.1 binary packages. If you need a standalone installer, please select the file according to your operating system from the list below to get the latest Qt Creator for your computer
--- this a layman would understand as Qt Creator is the GUI of Qt IDE
&
also you need to download "Qt 5.4.1 for Windows" which is a whooping 644MB !!
so, WAIT FOR A MOMENT...
Blockquote is this the case? or I've to download just the Qt Creator for my work?
Marco's comment explains it all. I don't know why you're bothered with the size of the package. What i want to add is, you can download Qt alone if you'd like to use a different IDE eg. CodeBlocks and set it up for Qt development but it's advisable to use Qt creator with Qt. Qt creator can't build and debug any code (except perhaps, you want to use it for other reasons) without Qt because Qt contains the necessary tools for that purpose.
So download Qt Creator alone if you already have Qt or want to update your old Qt creator and download Qt 5.4.1 for Windows if you want to do development on windows and already have Qt creator installed or any other IDE that can be setup for Qt development.

Qt - C++ Graphical application in visual studio

I want to create graphical application (drawing and moving squares and so) using C++. I was suggested to use Qt library for this. I am windows user and I use Visual Studio 2013 for developing C++ (console) apps. So I typed Qt download into google hoping to find some package of DLLs, libs, headers or something like that so I could include headers and link libraries with my code. But all I found was IDE Qt Creator (which I do not want) and Qt Visual Studio plugin (which I downloaded, but it still requires whole IDE to work). So my question is - How can I develop graphical application (no forms, just "canvas" to draw on with some mouse/keyboard support) using Qt library, C++ language and Visual Studio IDE, without requirement of downloading tons of GBs for IDE or plugins I do not want, with insurance that application would be easily deployable on most common operating systems.
The reason I do not want Qt creator IDE is simple -- There is a chance for this to be semester project and will be reviewed by teacher without any extra IDEs. (I'll send him just VS project/generated Makefile and Qt libraries with headers)
Thanks for clarification.
The short answer is: you cannot. You need Qt SDK, which comes with Qt Creator.
Qt comes with qmake build system and it does not require any IDE to compile and run the application. You can write in any IDE you want and compile anywhere, where Qt SDK and compiler is available.
If you want to provide the application to your teacher, he must have Qt SDK too to compile it. There is no way around this. And better test the application in the target environment. Writing portable applications is not a trivial task - if you hardcode paths like C:\QtSDK\path\to\something, there is little chance to run it under Linux without any changes.
If you cannot expect any SDK on a teacher's computer, you have few options:
convince her to install necessary tools
ask her what tools are permitted and stick with them
bring your own computer for final evaluation

Create Qt UI forms as a shared library in Qt Creator and using them in Eclipse C++ project

I am developing an application and the main IDE is Eclipse Juno(CDT) on Red Hat Enterprise Linux 6.
I have the following constraints:
Application must be developed on Eclipse (Non-GUI part)
Must Use Qt4 for GUI
Application target platform is Red Hat Enterprise Linux Server version 6.3
I am new to Linux Development Environment, Eclipse and Qt.
What I have done:
I have developed the main application on Eclipse.
I have created modules like interacting with hardware as shared libraries.
What I want to do (if possible, and practical):
I want to create the GUI module of the application using Qt Creator, as a library and use it in the main application on Eclipse.
What I am trying:
Created the GUI in eclipse without using any .pro files or Qt Creator. But since I am new to Qt and Eclipse and Linux, and time constraints, I want to make it quicker, easier and well planned approach to complete the tasks. This looks very tedious (obviously) as I am better off using an IDE and visual tools to create GUI.
Can someone help me with the following:
Am I doing the things right, is my approach of creating GUI module as a shared library and using it in another application a naive approach?
If I missed out detailing anything or if you need more info please let me know.
Thanks.

Creating GUIs for application

This is a question I've been wondering about for a long time.
How do you create an Interface for your program ?
It seems to much of a pain to position form controls and buttons using just code.
I'm looking for something similar to Visual Basic where you can drag and drop controls onto the window. But, I want to do this for applications written in C++.
Can It be done with compilers like MinGW on Eclipse ?
If you don't want to go the Qt route you can use ResEdit which is freeware. It will produce Win32 friendly .rc files that can be built with the MinGW resource compiler and used in Win32 applications.
There are some C++ Win32 wrapper libraries available though I'm not aware of any that are nearly as mature as Qt. I believe WinxGui is a port of WTL (or at least claims to be compatible with WTL) for GCC. It doesn't look like there has been much activity on the project site for a few years however.
What you're searching for is called Qt, both Eclipse and MinGW friendly.
Check out this nice article.
Qt toolkit is written in C++. So you can use it to develop GUI. It also comes with Qt Designer and Qt Creator IDE and tools.
Qt Reference Documentation
Qt Designer Manual
Qt Creator IDE and tools
And you can use MinGW to compile the code. You don't need to download MInGW separately. When installing Qt toolkik, it asks if you want to download MInGW also, just say yes to it. It will then download the correct version of MInGW itself.
The 1.7 GB download you look at is probably the full Qt SDK. This is not just Qt and documentation, but also includes the Qt Creator IDE with the Qt Designer "Form builder", the MinGW compiler, debugger, examples, demos, and some other stuff. There's also an "online installer" that allows you to select the packages you want before downloading everything. That's probably what I'd use if I were starting from scratch on Windows.