qt crashes on opening - c++

I am trying to get qt set up on my computer to make a gui for a c++ program. I installed it with no issues but it will not open. I open qt community an it opens a plugin loader and closes. Watching it from task manager it has multiple cmd sub processes open, a clangbackend.exe then a windows problem reporting processes starts and everything closes. I've tried rebooting and reinstalling. I'm on windows.

Original Thread
Try running this command in cmd.exe (command prompt):
c:\pathto\qtcreator -noload Welcome -noload QmlDesigner -noload QmlProfiler
ps: replace pathto with the path to the qt creator bin. ex = if your path to qt creator bin is, C://Program Files/Qt/Tools/QtCreator/bin, so the command looks like,
c:\Program Files\Qt\Tools\QtCreator\bin\qtcreator -noload Welcome -noload QmlDesigner -noload QmlProfiler
If this opens Qt Creator, go to help menu->About Plugins and disable "Welcome" permanantly.
If the solution above doesn't work try disabling your antivirus software like McAffee.

Related

Mac Terminal Wont Open When I'm Using QT Creator Anymore

Before I updated both QT and Xcode on my mac, my computer just stopped opening up the terminal when I went to run my code. It had worked for months and is still enabled as my default on QT. I Tried uninstalling and reinstalling both QT and Xcode, but my terminal still will not open when I run the code. When I disable terminal as my default, I can see my output at the bottom of my screen in QT, but I would like it to open in terminal. Any suggestions?
Someone on https://forum.qt.io found the solution, thank's so much to him !
A .dmg archive with a corrected QtCreator version 7.0.1 from the snapshot downloads is available here: https://download.qt.io/snapshots/qtcreator_qt5/7.0/7.0.1/134/
After installation, the terminal opens correctly

No output from heob in a Qt application using Qt Creator

I would like to use heob to check my app for memory leaks. This is what i tried: I opened the project "analogclock" from the examples collection in qtcreator. After that i have chosen "Analyze" and "Heob" from the drop down menu. After choosing the heob path and a click on the ok button, the application starts and a console window "heob32" is displayed. But now nothing happens. Just the word "kill" is displayed in the console window. I canĀ“t see any output and if i close the analogclock app i get the message: "heob: cannot create target process". Can anyone help me further to get useful output from heob?
What OS are you using and what heob did you install?
You need to download and install heob separately from Creator. Creator just installs a link without heob itself. Have you done this? Are you really running on a 32-bit system (there is a heob64 in case you are using a modern OS).
Did you configure your heob installation in Qt Creator correctly?
Can you run heob from the commandline with reasonable behaviour?

Qt creator run app on Mac OSX

I just installed Qt creator on OSX and after compiling my first program (nothing fancy, just "hello world"), I tried to run it. It opened a terminal without my hello world, just saying "press enter to close".
I read similar topics of Stackoverflow on this matter like this one :
Console input with Qt Creator
I did the two steps ("Run in Terminal" which was already checked by default and set the path to xterm "/usr/x11/bin/xterm -e", I checked that I had indeed xterm at this path after installing x11). But unfortunately, when I run my program, in the app output of Qt creator, I just have the message :
Starting
/Users/Michael/build-First-Desktop_Qt_5_5_1_clang_64bit-Debug/First...
and then nothing else happens, no terminal. Has someone already faced this problem?
Thanks in advance

Qt - Qt Command Prompt

So I found an excellent video where it teaches me about static compile. But in there it doesn't show where he got the "Qt Command Prompt" from. I searched alot but didn't find it in the directory. What do I do? Can anybody tell me where it's located? I even searched for it in Explorer but didn't find it.
Just add the following paths:
<qtdir>\mingw\bin;
<qtdir>\Desktop\Qt\<qtver>\mingw\bin;
<qtdir>Madde\bin\
to your %PATH% environment variable, and the default command prompt (cmd.exe) will become what you need. Don't forget to restart an already opened cmd.exe after editing %PATH%.
What OS do you use?
For exanple, here you can find how to edit %PATH% on win7.
The Qt command prompt is simply a normal cmd.exe session where the paths to the Qt libraries and binaries have been added to the environment.
It depends on how you installed Qt (using the SDK, build from source, etc.). If you used the SDK, a shortcut should have been installed in your Start menu. My Qt command prompt is at:
C:\Qt\4.8.2\bin\qtvars.bat vsvars
That being said, I rarely use the Qt command prompt. If you use the normal Visual Studio command prompt, then navigate to your Qt "bin" folder, you should be able to execute the command you need, like configure.
If you are using Windows 8, just type "Qt 5.4 for Desktop" after pressing the windows button.
Actually in windows 8 just typing "qt" in start menu, will give you the suggestion.

Disable Command Prompt When Running LibVLC with QT on Windows

I have a c++ program that uses libVLC and QT. When the program starts it creates the QT UI but it also opens a command prompt that holds any VLC errors. Does anyone know a way to suppress to CMD window?
Don't use "--extraintf=logger" as command to libvlc.