All Questions
1,610
questions
124
votes
8
answers
62k
views
Qt Creator - Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild
I just installed Qt 5.5 and am using Qt Creator for the first time on OS X. When I first installed Qt, it gave me an error message 'Xcode 5 not installed' which I thought was strange, (I have the ...
49
votes
14
answers
210k
views
This application failed to start because no Qt platform plugin could be initialized
I am stuck trying to run a very simple Python script, getting this error:
qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in ""
This application failed to start ...
44
votes
4
answers
36k
views
Building Qt Xcode Projects From the Command Line
I've been playing around with Qt for a few hours now. I found that qmake produces Xcode project files on Mac OS X instead of good ol' makefiles. I don't want to launch Xcode every time I want to build ...
43
votes
6
answers
20k
views
Attempt to install Qt on OS X gives 'You need to install Xcode 5.0.0', but this version is so old it's not available
I am a Windows/Linux developer who occasionally builds for OS X - particularly in Qt.
I have a simple Qt project that I have been developing on Windows. I now wish to build it on OS X.
I am running ...
32
votes
8
answers
103k
views
Qt FullScreen on Startup
I want to start an application on fullscreen (MacOS 10.8.x, Qt 5.1.1, C++) depending on the settings:
main.cpp
#include "MainWindow.h"
#include <QApplication>
int main(int argc, char *...
30
votes
2
answers
21k
views
How to specify Mac platform in qmake (QtCreator)
I would like to set some configurations for Mac OS in pro file via QtCreator. I read the document, and found it supports Windows and Unix, like the following,
win32 {
SOURCES += hellowin.cpp
}...
22
votes
3
answers
15k
views
XCode 8 error "Project ERROR: Xcode not set up properly", even though the license has been accepted
I can no longer build Qt project after updating to Xcode 8 today. I get the following error despite having followed the instructions from this answer.
Project ERROR: Xcode not set up properly. You ...
21
votes
5
answers
12k
views
PySide / Qt Import Error
I'm trying to import PySide / Qt into Python like so and get the follow error:
from PySide import QtCore
ImportError: dlopen(/usr/local/lib/python2.7/site-packages/PySide/QtCore.so, 2): Library not ...
20
votes
5
answers
25k
views
How to compile a simple Qt and c++ application using g++ on mac os x?
I am trying to use Qt for a project in school but am running into problems. I started following the tutorials and I am running into Makefile problems. Most of the tutorials say to run qmake -project, ...
18
votes
7
answers
31k
views
How to check the installed Qt version on Mac OS X
Is there a command to check the version of the installed Qt on Mac OS X. My Mac OS X version is 10.6.7.
Eidt: Update the status 10/28/2011
When running /usr/sbin/system_profiler SPFrameworksDataType,...
17
votes
6
answers
12k
views
Sign a Framework for OSX 10.9
After using macdeployqt I sign my application to avoid Gatekeeper problems.
I can use codesign on all the frameworks and everything inside the bundle but when I come to sign the bundle I get an error:...
17
votes
3
answers
10k
views
QT5 font rendering different on various platforms
I want to make reproductible tests of some custom widgets renderings. In order to do that, I paint them onto a QImage and save the result as PNG. The output is really different on Windows compared to ...
16
votes
6
answers
42k
views
Cannot run qmake in Mac Terminal
I'm learning Qt for my C++ course at college. I am trying to set up the environment for my first assignment but I can't seem to get it right. I swear I have run qmake in the terminal before, but now ...
16
votes
9
answers
8k
views
Qt 5.1 and Mac: Bug making macdeployqt not working properly
I have a problem since the version 5.1rc2 of Qt for Mac OS X. (5.1 is also affected, not the 5.1rc1)
When I build my app and do a otool -L on the binary file to see the paths of the shared libraries, ...
16
votes
2
answers
17k
views
linking mac framework to qt creator
I have a project that uses SystemConfiguration.Framework.
I've been using xcode, where adding the framework is quite easy, just add it to xcode project's framework. But now, I need my project to be ...
16
votes
3
answers
9k
views
Qt5 cannot find platform plugins Mac OS X
I am trying to deploy a Qt program on Mac according to this link. After going through with otool -L on my executable and all of the libraries that it depends on, which I copied into the application ...
16
votes
1
answer
8k
views
Using Swift with Qt
We can, quite easily, use Objective-C with C++ in Qt.
Having watched many of Apple's WWDC 2015 talks, I expect that Swift will supersede Objective-C for OS X (and iOS) development; all the ...
15
votes
3
answers
6k
views
How to enumerate volumes on Mac OS X?
I am not very proficient in Mac OS X programming, but I am working on a Qt application which needs info about the storage devices. Basically a list of hard drives and USB thumb drives.
The end result ...
14
votes
2
answers
12k
views
QFileSystemModel setRootPath
I am attempting to create a Qt application which shows the contents of a folder (“Users” folder in Mac OS).
Here is the code:
QFileSystemModel *dirModel = new QFileSystemModel;
dirModel->...
14
votes
2
answers
10k
views
Qt applications on new Mac App Store
I have a Qt app that runs on OS X that has potential to go on the new Mac App Store.
I have reviewed the guidelines at https://developer.apple.com/appstore/mac/resources/approval/guidelines.html. I ...
14
votes
5
answers
13k
views
pip install -U PySide error
Does anyone know how to avoid the following error when running pip install -U PySide as per the official website instructions here: https://pypi.python.org/pypi/PySide/#installing-pyside-on-a-mac-os-x-...
12
votes
10
answers
39k
views
Where is Qt designer app on Mac + Anaconda?
I am trying to find Qt designer app on Mac. I installed anaconda package and conda reports that qt, sip, and pyqt are installed. Still I couldn't find the designer app in any of the folders. My Python ...
12
votes
2
answers
6k
views
How to fix "Qt requires a C++17 compiler" error?
I installed with brew the CGAL C++ library.
After doing cmake . in the first basic example , I do make and I got a sequence of errors, the first one and most important is:
/usr/local/include/QtCore/...
12
votes
1
answer
4k
views
Can't use C++11 features when building with Qt
I'm on OS X 10.8.4 (Mountain Lion) with the latest command line tools from Xcode. I'm trying to build a Qt project (in Qt Creator) which uses some C++11 features; notably std::unique_ptr. Whenever I ...
12
votes
3
answers
3k
views
Qt Creator debugger very slow
I'm using Qt Creator debugger but when I want to inspect the current this variable by expanding it from the Locals and expressions view, it take quite a long (about 30 seconds) before giving back ...
12
votes
1
answer
1k
views
Qt's default threads
When I start a new Qt application with a minimal amount of code and run it, I see that there are a number of threads running, which at a minimum is 2 and can be as many as 5. It usually settles at 2, ...
12
votes
5
answers
2k
views
Window is hidden even though QCloseEvent is ignored
I’m currently trying to port my Qt application to Mac OSX and just came across the following problem:
One of my window classes (derived from QMainWindow) displays a dialog box when the close button ...
11
votes
1
answer
10k
views
MacOS Sierra - cmake failed with qt5
I'm trying to build a cpp/qt5 project using cmake, but the compilation return an error regarding QT5.
I've installed QT5 with Homebrew,
When I do :
brew --prefix qt5
I get
/usr/local/Cellar/qt5/...
11
votes
4
answers
30k
views
How to solve qt5 (packages not found) cmake errors in mac?
I get these following errors during build of a file using CMake:
CMake Warning at CMakeLists.txt:33 (FIND_PACKAGE):
By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
asked ...
11
votes
1
answer
3k
views
QSettings on OS X 10.9 - unable to locate/clear it
I have a Qt (4.8.5) based application running on OS X 10.9. The app uses QSettings class specifying app name and company. Plist file is created by QSetttings under:
~/Library/Preferences/com....
11
votes
3
answers
7k
views
No type named 'nullptr_t' in namespace 'std'
Someone is compiling my Qt program that is using the C++11 standard and they got this error (Mac OS X / gcc). I know I can declare it, but shouldn't it be already in <cstddef>?
./...
10
votes
4
answers
33k
views
When compiling get error: 'QtGui/QAction' file not found #include <QtGui/QAction>
I just installed Mac OS X 10.8.3 and Qt Creator 3, XCode, and XCode command line tools. I'm trying to compile a project that works on another computer but each time I go to "build all" I get error: '...
10
votes
5
answers
18k
views
How to set up Qt Creator so that it shows up under Applications?
Admittedly, I'm a newbie on the Apple / Mac ecosystem...
On Max OS X, the default install from Qt Disk Image installs to the user's home directory (/Users/whoami). This creates thousands of files ...
10
votes
6
answers
15k
views
MenuBar Not Showing for Simple QMainWindow Code, Qt Creator Mac OS
I have been having problems adding a menu item to the built in menu bar in a Qt desktop application. I copied the code provided in the QMainWindow class reference documentation for creating a menu to ...
10
votes
4
answers
23k
views
How to set active developer directory with ‘xcode-select’ for Qt installation?
I'm trying to install the latest version of Qt for mac (https://www.qt.io/). But when I try to install I get an error.
You need to install Xcode http://developer.apple.com/xcode. If already
...
10
votes
3
answers
10k
views
Using pkg-config with Qt Creator/qmake on Mac OSX
pkg-config doesn't come stantdard with Mac OSX (10.8.4). For my Qt project I wanted to use pkg-config to link in protocol-buffer, so that it would be portable. The very point of choosing Qt was to ...
10
votes
2
answers
21k
views
How to specify target mac os x version using qmake
I am trying to compile c++11 code on the Mac OS X using Qt Creator/qmake and I am getting the following error:
clang: error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later)
...
10
votes
1
answer
5k
views
Qt5 and MacPorts: missing links
I'm wondering if somebody has also a similar "problem" while installing Qt5 from MacPorts.
I've installed a frech MacPorts distribution yesterday (on Yosemite) and installed the ports qt5-mac and qt5-...
10
votes
4
answers
4k
views
CMake, OS X bundle, recursively copy directory to Resources
I am trying to transition our Qt application to CMake, and one of the targets is an OS X app. It requires a certain folder to be put in its our.app/Contents/Resources folder. I tried adding it using ...
10
votes
1
answer
5k
views
Cannot make new project in QT on mac osx
I have been stuck on this for the past couple days. I have installed QT 4.8 and I have installed the libraries as well. But when I come to make a new project, I am only given the option of creating a ...
10
votes
3
answers
28k
views
Qt5.1/Qt5.2 + Mac OS 10.9 (Mavericks) + XCode 5.0.2, Undefined symbols for architecture x86_64
Environment : Mac OS 10.9 + Qt5.1/Qt5.2 + OpenCV2.4.7 + XCode(5.0.2)
I can compile the following program via terminal
g++ -L/usr/local/lib -lopencv_core -lopencv_highgui \
-I/usr/local/include ...
10
votes
2
answers
3k
views
QWidget on Mac OS X not focusing in Qt 5
I have QSystemTrayIcon with a QAction that opens a new window of type QWebView. When the window loses focus and I select the QAction again, the window should regain focus. It does on Linux, but doesn'...
10
votes
2
answers
4k
views
Retina support in Qt5 on OS X
I'm writing a C++ graphical application using Qt 5.5.0 on OS X El Capitan on a Retina MacBook Pro. Text is pixelated throughout the application so I suspect that high DPI mode is not used. My Info....
10
votes
3
answers
5k
views
Webkitwidgets not found in QT for OS X
I installed Qt for mac via .dmg installer. I added this to my .pro file:
QT += webkitwidgets
and then i got this error:
Project ERROR: Unknown module(s) in QT: webkitwidgets
On Ubuntu, this ...
9
votes
6
answers
23k
views
make: *** No rule to make target 'qt5py3'. Stop
I'm working on a machine learning assignment. By the when I was trying to install the following file
brew install qt qt5
brew install libxml2
make qt5py3
python labelImg.py
python labelImg.py [...
9
votes
3
answers
4k
views
Qt application throws "dyld: Symbol not found: __cg_jpeg_resync_to_restart"
I get well known dyld issue on OS X.
Qt.pro file:
INCLUDEPATH += /usr/local/Cellar/libpng/1.6.23/include /usr/local/Cellar/jpeg/8d/include
LIBS += -L/usr/local/Cellar/libpng/1.6.23/lib -L/usr/local/...
9
votes
4
answers
11k
views
Qt Creator vs Xcode for Qt development on the Mac
I'm about to start a Qt project on the Mac and I'm not sure which IDE to choose between:
Qt Creator
Xcode
Which are the advantages/disadvantages of these two IDEs for Qt development on the Mac?
9
votes
3
answers
13k
views
How to install Qt on MacOS X Sierra and add qmake on terminal
I want to install Qt on my Mac and use the qmake through terminal to compile code. I downloaded the open source Qt Creator from Qt site, but I cannot set it up. Anyone with similar problems?
System: ...
9
votes
3
answers
24k
views
qt mac osx 10.8 dyld: library not loaded...image not found
I have an app I was building and running fine under osx snow leopard with Qt 4.7.4, but that macbook died. I now am setting up a new macbook running mountain lion (10.8.2) and Qt 4.8.3. I can build ...
9
votes
4
answers
4k
views
Is there a way in Qt to prohibit the computer from going to sleep?
I am writing a Qt application that does some heavy computations, but on a Mac (potentially also on Windows but I currently have no way of checking this), the execution ceases as soon as the computer ...