All Questions
Tagged with objective-c qt
84
questions
0
votes
0
answers
20
views
How to Reactivate the Last Focused Window After My Qt App Closes on macOS
I'm developing a screenshot-taker application using Qt and need some assistance with macOS-specific behavior.
Here’s the scenario:
When I take a screenshot, my application becomes focused to allow ...
0
votes
1
answer
58
views
How to open file with a specific Application Bundle?
I wrote an application in Qt for macOS & Windows. Now we want to communicate with that app from the browser using custom protocols. As it seems not possible to add this to Qt I tried to build a ...
0
votes
1
answer
50
views
Implement a Custom Protocol on Mac for a Cocoa / Qt Application
We want to be able to call our application from a browser link (as i.e. MS teams does when you open a link to a teams meeting).
The principle is quite simple and exists since quite a while. Under ...
0
votes
0
answers
39
views
Window embedding under Mac
How to embed the window of process A into the window of process B using object-c under Mac. Sorry, I am not familiar with this aspect and I cannot find useful relevant information online. I hope ...
0
votes
1
answer
71
views
Getting compilation errors when trying to add QR code scanner to a Qt project
I'm trying to add a QR code scanner to my iOS project written using Qt Quick.
I've found this example on how to achieve it using native APIs.
I've added QRCodeReaderViewController/* files to my ...
1
vote
1
answer
252
views
Lock orientation with native Objective-C code from Qt
I want to be able to change orientation only programmatically. Wrote function, which rotates screen, as I want.
UIInterfaceOrientation toIOSOrientation(ScreenOrientation desiredOrientaion) {
if (...
1
vote
0
answers
117
views
Qt iOS app crash in completion handler callback with EXC_BAD_ACCESS
I'm writing a Qt app on iOS which uses the MLKit FaceDetector. I have a FaceDetector class which has the following method:
void FaceDetector::runFaceDetection(const QImage &image)
{
// ...
0
votes
0
answers
25
views
Writing NSString As Char* Via Socket Not Working
I have two application Client (Written in Qt) and Server (Written in Objective-C) that communicate with each other. In one scenario I'm facing issue when server sends data via socket to Client. My ...
2
votes
1
answer
291
views
How to fix the crash in CFNotificationCenterAddObserver for NSWorkspaceDidActivateApplicationNotification?
Not very much accustom to Objective C, hence trying to observe NSWorkspaceDidActivateApplicationNotification event in C++ code with CFNotificationCenterAddObserver() method.
#include<CoreFoundation/...
0
votes
2
answers
172
views
how to get result from .m function to .mm class Objective-C mixed with Qt
I have Qt application, I'm calling UIImagePickerController to get file path for movie the user selected. So I have static functions in Objective-C which call functions from .m file, when user selects ...
0
votes
1
answer
785
views
How to set Mac application user interface light/dark theme back to default in Objective C?
In my Qt application I want to give the user the option to set the light/dark theme of their app to:
The same as the operating system theme
Light (ignoring the operating system theme)
Dark (ignoring ...
1
vote
3
answers
885
views
Embedding files in an iOS app (C++/Qt/cmake)
In an iOS c++/Qt application, I need to ship a few files and to keep them in their directory structure.
For the Android version, we bundle a zip which we unzip on the target before creating the ...
0
votes
0
answers
309
views
Reparenting MacOS app into QT based app so that other window behaves as child of QT window
What I am trying to achieve is. I have a QT application which is cross-platform and I have a native mac app(obj c) & windows app(C#).
First my QT app launches and then on some button click(...
0
votes
0
answers
158
views
Include Apple's SimplePing (Objective-C) in Qt C++ Project
ICMP ping for MacOS is not possible with Qt, because it would require raw sockets. There is however a SimplePing Objective-C code available from Apple, and a SimplePingHelper from Chris Hulbert:
...
0
votes
1
answer
104
views
Qt 5.3.2 on Mac Snow Leopard: ld: symbol(s) not found for architecture x86_64 [clang, objective-c and c++]
I read through many questions of the same nature, but didn't find something specific to what I needed.
I am compiling a project on Snow Leopard (10.6.8) and Qt 5.3.2.
In my program's main method I ...