Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
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 ...
Anwarul Islam's user avatar
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 ...
RED SOFT ADAIR's user avatar
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 ...
RED SOFT ADAIR's user avatar
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 ...
liumangge's user avatar
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 ...
Alexander Dyagilev's user avatar
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 (...
Ghorm's user avatar
  • 95
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) { // ...
Teee's user avatar
  • 71
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 ...
Abhishek varma's user avatar
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/...
Vishakha's user avatar
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 ...
user2018761's user avatar
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 ...
Andy Brice's user avatar
  • 2,317
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 ...
Denis Rouzaud's user avatar
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(...
Amit Hooda's user avatar
  • 2,134
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: ...
Kalileo's user avatar
  • 11
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 ...
NuclearPeon's user avatar
  • 5,991

15 30 50 per page
1
2 3 4 5 6