Can Qt creator show each output of the application in new terminal? - qt-creator

I use Qt creator to work on C++ code. The problem is that I would like to compare two different outputs, but every time I run the code Qt creator deletes the previous output in the terminal, therefore I can not compare two outputs. Tools->Options->Environment->System->Terminal has option /usr/bin/gnome-terminal-x.
Is it possible to make Qt creator show each new output of the application in new terminal? I use Qt Creator 3.6.1, my OS is Ubuntu 14.04.4

Related

App run via Qt Creator doesn't prompt for microphone permission on macOS

When I build and run my application via Qt creator, it doesn't prompt for microphone access and because of that microphone doesn't work within the app.
If I run the built application directly via terminal (open applicaton.app) permission prompt similar to the one below is shown without any issues:
My environment:
macOS Monterey 12.4 on MacBook Pro (16-inch, 2021) powered by Apple M1 Pro chip
Qt 5.12.12 with Qt Creator 5.0.2
This makes it difficult to test my app since every time I build it, I need to run it from the terminal for microphone to work. NSMicrophoneUsageDescription is present in the Info.plist (otherwise it wouldn't work at all).
I've tried Qt 5.15.2 and everything works fine there (app requests permission when run from Qt Creator), but I need to use 5.12.12 for other reasons.
This is because QtCreator was set up without microphone access and child processes running from QtCreator would inherit that setting.
When you run it through the console, the application would be in charge of setting these permissions up for itself as opposed to inheriting it from QtCreator.
It seems that the QtCreator maintainer addressed this issue in QtCreator 8.0.0 in this commit. The issue was originally reported in this Jira ticket.
So, the solution is to either use that version or just launch it separately or in a different IDE for the time being.

Build universal binary (Apple Silicon & Intel) in GUI of Xcode without make file?

For a long time I'm using Xcode and compile my project using Product/Build command. Then I find the compiled app when right click on "Products" files. So I can get it from there and copy it to where ever I want.
But how to create a universal binary with Apple Silicon & Intel without using a make file? On my M1 MBP it creates only for itself. My Mac Mini with INTEL inside wont run that app. I'm compiling it on my Mac Mini as well to get a version which runs there too.
Any hints? (maybe with some screenshots)?
Got it! In the top line right of the stop button you can choose the build option getting a universal binary. Seems to be a new option I didn't found till now.

can dev c++ be installed on mac OS X yosemite?

I need to insert jpeg images in my C++ program. I tried doing it on turbo C++ and code blocks using graphic.h header but it didn't work. So someone told me that dev C++ supports graphics well and inserting pictures can be done easily. So I wonder if dev C++ can run on mac and also I am a new mac user.

How to open two versions of Qt Creator using cmd

I'm working on Windows 7 and already installed Qt Creator 3.3 and Qt Creator 2.4.1 in my PC.
I'm trying to open Qt Creator by typing qtcreator in cmd. When I press 'enter' I get loaded Qt Creator which first appears in the PATH variable. (I checked after swap the positions of both in PATH)
But I don't know how to open the two version at different times.
I'm searching a way to use alias when set the PATH. Something like qtcreator3.3 and qtcreator2.4 or any other.
You should really just use the newer version of Qt creator (or upgrade all the way to the latest release) but set it up to use the older versions of Qt that the project uses. Qt Creator is just an IDE, there's no reason you can't use a newer version than other people, as long as you're all building with the same version of Qt and same compiler/linker.
Also, why command line? You can just create start menu shortcuts for each one. Start typing qt after bringing up the start menu and windows will show both for you to click on.
But if you really must do what you asked, you can create shortcuts to the qt creator executables, then name them whatever you want, and put them somewhere on your PATH (like right next to the actual .exe). Then if you want to be able to launch qt creator v3.3 from a command line, you can run qtcreator3.3.lnk, or follow this question: https://superuser.com/questions/227877/running-shortcut-from-command-prompt-without-the-lnk-extension-windows to call it without having to type .lnk.

How to make qmake compile multiple cross platform binaries

I'm using QT Creator on a project and was wondering if there's a single command to compile the project to a Mac, Windows, & Linux binaries so I can easily send them to other computers for testing without having to send over the whole source code. Currently I'm running the QT Creator on Mac OSX if that matters.
This is possible, but it isn't as simple as you imply. To properly do this, you would need to set up a cross-compiling environment complete with libraries already compiled for the other platforms, and compilers/executables compiled for your platform that produce output for the other platform. You would then need to keep track of all these variables somehow in your qmake file to be sure you're producing the correct output.

Resources