Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. mac-os
    Log in to post

    • SOLVED Strange mouse press events in lower right corner of window widgets Mac only
      General and Desktop • qwidget resize mouse events mac-os • • KonradGl  

      14
      0
      Votes
      14
      Posts
      1524
      Views

      We found a solution to that bug. The Cocoa window itself isn't set to non resizeable. If you do this, everything works as expected. class MainWindow : public QMainWindow { public: explicit MainWindow(QWidget *parent = nullptr) : QMainWindow(parent) { //this will get rid of the size grip widget showing setFixedSize(500, 500); } void mousePressEvent(QMouseEvent *) override { std::cout<<"mouse pressed"<<std::endl; } }; int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; NSWindow* window = [(NSView*)w.window()->winId() window]; //IMTPORTANT. Otherwise the lower right mouse events will not be passed on correctly by cocoa window.styleMask &= ~NSWindowStyleMaskResizable; w.show(); return a.exec(); }
    • SOLVED How can I add Symbolic Link (/Application) and background image in .dmg package?
      General and Desktop • qtcreator macdeployqt qt 5.11 mac-os bash • • Yash001  

      3
      0
      Votes
      3
      Posts
      1745
      Views

      Another way is to create .dmg file by hdiutil create instead of macdeployqt -dmg . mkdir ui-release cd ui-release ln -s /Applications cd .. mv $appfolder ui-release/ hdiutil create -volname $volname -srcfolder ui-release/ -ov -format UDZO $dmgfilename
    • SOLVED call external executable file in Mac OS from QT
      General and Desktop • mac-os call external execut • • zhaobofu  

      6
      0
      Votes
      6
      Posts
      695
      Views

      @JonB thanks I solved the problem by using QT to call a cs.command file, and cs.command calls the executable file. QString program="Users/itadmin/Documents/det1/cs.command"; QDesktopServices::openUrl(QUrl("file:///"+program, QUrl::TolerantMode));
    • SOLVED what is wrong in script of application bundle for IOs application?
      3rd Party Software • macdeployqt bundle 3rd party mac-os dynamiclibrary • • Yash001  

      8
      0
      Votes
      8
      Posts
      1388
      Views

      Hi, With help of our senior Engineer. I am able to solve this issue. He change the binary path of libSquidStateLibrary.1.dylib into libChargeDischarge1.dylib and .app file. Inside the bundle my library location at _Squidstate.app/squidstatelibrary/libSquidStateLibrary.1.dylib //change Binary path in Plugin install_name_tool -change libSquidStateLibrary.1.dylib @executable_path/squidstatelibrary/libSquidStateLibrary.1.dylib ./../../out/Release/_SquidStat/_SquidStat.app/Contents/MacOS/prebuilt/libChargeDischarge1.dylib // change binary path in app install_name_tool -change libSquidStateLibrary.1.dylib @executable_path/squidstatelibrary/libSquidStateLibrary.1.dylib ./../../out/Release/_SquidStat/_SquidStat.app/Contents/MacOS/_SquidStat solution may be helpful to novice programmer like me. Thank you.
    • SOLVED QComboBox and QPushButton in a grid layout do not line up properly in macOS
      General and Desktop • button combobox gridlayout mac-os • • Guy Gizmo  

      15
      0
      Votes
      15
      Posts
      4769
      Views

      Checkout the answer I have given here: https://forum.qt.io/topic/105191/why-isn-t-a-qcombobox-positioned-correctly-in-a-layout
    • UNSOLVED How to solve a missing pkg-config command
      Tools • pkg-config mac-os • • a.burks  

      14
      0
      Votes
      14
      Posts
      18385
      Views

      I posted the issue in GitHib. Unfortunately I can't understand the answer. Can someone help? Building a Mer/Sailfish OS project within Qt Creator relies on the definition and use of qtc_* macros inside the .spec file, which is not the case of lipstick library. Opened #122 to let mb2 issue warning when qtc_* macros are not used in the .spec file.