Sorry, stupid question what is 64 bit qt?
Sorry, stupid question what is 64 bit qt?
What is Qt then if it's not Qt creator? I know Qt Creator is an IDE.
Seriously?
You have 156 posts on a Qt forum and don't know what Qt is?
And you have been using a web based forum for 5 years and haven't heard of Wikipedia?
https://en.wikipedia.org/wiki/Qt_(software)
Cheers,
_
Qt is a library that you can use in programs. The Qt library can be built on Windows using a 32-bit tool chain or a 64-bit tool chain for use in programs built with the matching tool chain. The qmake tool that comes with a Qt library will arrange building applications using that library and the same tool chain.
Qt Creator builds Qt applications by running qmake from a target Qt library on your behalf.
I program on and off as a hobby.
Thanks Chris.
Not sure if I fully understand this statement, but is this why you're able to run programs from Qt that when run from the directory where you get the compiled .exe, you sometimes get errors like certain libraries are needed for the program to run successfully?
You are still confused. Qt is not a program. You do not "run things from Qt". Qt is a set of libraries, binary code that gets linked into a program to provide your program with support for creating a GUI, interacting with the network, file system, mouse, keyboard, and so forth. Your program uses the Qt libraries, Qt does not "run" your program, nor does your program "run" Qt.Not sure if I fully understand this statement, but is this why you're able to run programs from Qt
Likewise, Qt Creator (which you are presumably using to create your program) is not Qt. Qt Creator is a tool to help you create, edit, and build projects that use the Qt library. It's an IDE, an Interactive Development Environment. It is only one of many such IDEs that you can use to create Qt-based programs. Microsoft Visual Studio, Eclipse, CodeBlocks, and plain old Notepad and the command line can be used to build Qt-based programs, too. What makes an IDE useful is that it does things like 1) set up the environment path so that when you start a Qt program from within it, the program can locate the Qt runtime libraries; 2) provide C/C++ aware editors to help make code development easier; 3) provide "wizards" to create and manage project configurations for you; 4) provide GUI wrappers for command line tools like qmake, make, compilers, linkers, and debuggers so that these external programs appear to be part of the IDE (the "integrated" bit), and 5) many other useful things which are usually much harder to do manually.
The reason why your Qt-based programs will run from within an IDE but not when you run from the command line is that your IDE has set the PATH environment it uses to include the Qt runtime library location when it starts up, whereas your normal environment PATH variable (i.e. outside of the IDE) does not include these paths. If you set your environment variable properly, you could run a new Qt-based program from its directory without errors due to missing libraries, just as you can from within the IDE.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Sorry I did mean to say from Qt Creator.
Last edited by Atomic_Sheep; 4th June 2016 at 17:01.
Bookmarks