Skip to content
  • 0 Votes
    14 Posts
    2k Views
    K

    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(); }
  • 0 Votes
    3 Posts
    2k Views
    D

    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
  • 0 Votes
    6 Posts
    1k Views
    Z

    @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));

  • 0 Votes
    8 Posts
    2k Views
    Y

    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.

  • 0 Votes
    15 Posts
    6k Views
    MrKozmonM

    Checkout the answer I have given here:
    https://forum.qt.io/topic/105191/why-isn-t-a-qcombobox-positioned-correctly-in-a-layout

  • 0 Votes
    14 Posts
    29k Views
    a.burksA

    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.