Skip to content
  • What Mac M1/M2/M3 means to Qt?

    Unsolved Installation and Deployment mac os arm qt 5.5 building
    2
    0 Votes
    2 Posts
    487 Views
    jsulmJ
    @fulltopic See https://doc.qt.io/qt-5/macos.html#architectures Qt 5.15 is available as binary for Mac arm64 (via official installer). Just install XCode and Qt and you can build for Apple Silicon.
  • 0 Votes
    5 Posts
    2k Views
    P
    I had the same problem upgrading from 6.6 to 6.7, I resolved it by using the correct NDK (26.1.10909125), see https://doc.qt.io/qt-6/android-getting-started.html
  • Implement a Custom Protocol on Mac

    Unsolved General and Desktop mac os qtwidgets
    14
    0 Votes
    14 Posts
    3k Views
    S
    The Implementation to handle a custom Protocol in the Application does no more work in Qt 6.8.2 as described above (only the C++ programming part, the other stuff - Info.plist etc. remains unchanged) The correct way to implement such a handler is to use void QDesktopServices::setUrlHandler() See https://doc.qt.io/qt-6/qdesktopservices.html#setUrlHandler This paragraph also describes how to set Info.plist etc... This most likely also would have worked in 6.5.3 - why did I never find it? For Windows all of this works quite differently. Registering works through well known registry entries: [HKEY_CLASSES_ROOT\myprotocol] "URL Protocol"="" [HKEY_CLASSES_ROOT\myprotocol\shell] [HKEY_CLASSES_ROOT\myprotocol\shell\open] [HKEY_CLASSES_ROOT\myprotocol\shell\open\command] @="\"path to application.exe" \"%1\" This will just start a new instance of the application with the custom protocols URL as first parameter %1. Its the applications responsibility to handle that correctly (i.e. call a existing instance via a QLocalSocket etc.
  • 0 Votes
    5 Posts
    943 Views
    KH-219DesignK
    @johnco3 said in porting qmake pro file to mac - library issue: how I should use or handle the environment variables that point to the homebrew directories? I have a sample project (my own "living cheatsheet") that compiles a Qt GUI for mac (and other platforms). You don't have to take my word for it, you can look at the Github "Actions" (continuous integration) to see that the builds are succeeding. My "cheatsheet" project: uses homebrew: https://github.com/219-design/qt-qml-project-template-with-ci/blob/master/tools/ci/provision_mac.sh#L10 makes minor use of macx blocks in pro/pri files For my baseline project, the only macx blocks I seem to need are the following "quality of life improvements": ios|macx { # the lines below suppress warnings generated by Qt's header files: we tell # Clang to treat Qt's (mac) Framework headers as "system headers": QMAKE_CXXFLAGS += -iframework $$[QT_INSTALL_LIBS] QMAKE_CXXFLAGS += -isystem $$[QT_INSTALL_LIBS]/QtCore.framework/Headers } and ios|macx { # Disable a couple that are more onerous to comply with on Mac QMAKE_CXXFLAGS += "\ -Wno-error=missing-noreturn \ -Wno-error=sign-conversion \ " } (in the file https://github.com/219-design/qt-qml-project-template-with-ci/blob/master/compiler_flags.pri) However, the baseline project does not link to anything from homebrew. On another project (not public on github), here are some other snippets I have used: macx { # MacOSX homebrew puts the mysql.h header elsewhere: QMAKE_CXXFLAGS += -isystem /usr/local/include/mysql } macx { LIBS += -L/usr/local/lib -lmysqlclient } Once your code compiles, you will very likely find yourself face-to-face with another common MacOS hurdle: the app bundle. Reference: https://developer.apple.com/go/?id=bundle-structure In order to make a bundle that will launch (so you can actually launch your app), the Qt "magic" you will need is macdeployqt: https://github.com/219-design/qt-qml-project-template-with-ci/blob/master/build_app.sh#L91
  • Qt 6 Clang missing frameworks on Mac ARM

    Solved General and Desktop qt6 mac os c++ qt6
    4
    0 Votes
    4 Posts
    900 Views
    L
    Turns out I was using an old version of crashpad that was explicitly adding in those old libs in the .pri file.
  • 0 Votes
    2 Posts
    701 Views
    SGaistS
    Hi, The system style are free to ignore hints in order to stay coherent with the OS guide lines so you are likely hitting that. One possible way is to create a QProxyStyle.
  • QT6.3+mysql8.0+Mac

    Unsolved Qt 6 mysql qt6.3.0 mac os
    3
    0 Votes
    3 Posts
    652 Views
    W
    @JonB thx. I input was wrong.
  • Building PythonQT on macOS?

    Unsolved General and Desktop python mac os homebrew qmake
    4
    0 Votes
    4 Posts
    846 Views
    SGaistS
    Looks like a build error, no ? Are you using a pre-built version of Qt ?
  • 0 Votes
    6 Posts
    1k Views
    artwawA
    After the advice from @SGaist I started to experiment a bit with settings of the build steps: problem disappeared after I did these three steps one by one (after each I checked if the problem is gone - it disappeared after the last step: turning off QML debugging and profiling switch (default was "leave default", effective call showed CONFIG+=qml_debug now it is CONFIG-=) turning off QtQuick compiler (default was "leave default, effective call showed CONFIG+=qtquickcompiler now it is CONFIG-=) deleting shadow build folders (I do it routinely once a week or so anyway). Now the problem is gone, I am marking the topic as "solved".
  • 0 Votes
    8 Posts
    2k Views
    R
    I made it work by removing this flag: Qt::WindowDoesNotAcceptFocus
  • Qt 5.12 Mac OS ugly font rendering

    Unsolved General and Desktop qt mac os mac os fonts
    3
    0 Votes
    3 Posts
    976 Views
    G
    hi, I think you miss to activate HIGH DPI support in your info.plist ? <key>NSPrincipalClass</key> <string>NSApplication</string> <key>NSHighResolutionCapable</key> <string>True</string> Have look here
  • 0 Votes
    2 Posts
    525 Views
    C
    "make module-qtbase" worked!
  • Mac Stringstream returns wrong output

    Unsolved C++ Gurus c++ qtcreator 4.9.1 stringstream mac os
    32
    0 Votes
    32 Posts
    9k Views
    K
    @wraitii Thanks for information! You've probably meant libstdc++ and libc++, because libc is kinda different thing
  • Best compiler or IDE for macOS/QT?

    Unsolved General and Desktop mac os compiler
    2
    0 Votes
    2 Posts
    867 Views
    SGaistS
    Hi, There's only one official compiler on macOS and it's clang coming with Xcode. There are others than you can get using macports for example but you'll be on your own in case of trouble. As for the IDE, if you want to have a common development experience, then I'll recommend going with Qt Creator so you don't have to do big switches when changing development OSs. The interface will stay the same so you'll feel more quickly at home.
  • 0 Votes
    6 Posts
    2k Views
    mrjjM
    @Ilja Super good to hear. Thank you for the feedback. happy programming.
  • 1 Votes
    5 Posts
    2k Views
    SGaistS
    Thanks for the link !
  • Such fenster im Trayicon oben für mac wie swift code beilage...

    Solved German mac os
    1
    0 Votes
    1 Posts
    685 Views
    No one has replied
  • vsprintf can not work on mac OS

    Unsolved C++ Gurus vsprintf mac os
    4
    0 Votes
    4 Posts
    2k Views
    M
    What does the debugger say ? It can crash in many ways. Maybe you could use a large static buffer: char dest[1000]; and use vsnprintf, vswprintf instead.
  • 1 Votes
    2 Posts
    2k Views
    B
    I traced the build failure down to pyside commit eb28469e - "Fix QtQuick bindings generation". I haven't had a chance to triage the root cause but pyside builds on macOS up through the previous commit.
  • Native Menu bar on macOS

    Unsolved General and Desktop mac os qt5.6
    9
    0 Votes
    9 Posts
    5k Views
    S
    https://bugreports.qt.io/browse/QTBUG-57072