Giter VIP home page Giter VIP logo

Comments (5)

vin-eet-singh avatar vin-eet-singh commented on September 27, 2024

Hi francoislauzon,
Thank you for your feedback.
Instead of:
RoboDK_API::RoboDK *rdk_=new RoboDK_API::RoboDK("",kRoboDKPragmaPort,"/NOSPLASH /HIDDEN");
You can use:
RoboDK_API::RoboDK *rdk_=new RoboDK_API::RoboDK("",kRoboDKPragmaPort,"/NOSPLASH -NOUI");

Let me know how it goes.

from robodk-api.

francoislauzon avatar francoislauzon commented on September 27, 2024

If I use the '-NOUI' argument, when I later show RoboDK using the API the mainwindow is empty.

What I am trying to acheive is to start RoboDK using the API and then integrate it as a widget... If you modify the Cpp-sample with the following mainwindow constructor you will be able to reproduce what I want (except there is the visual glitch at startup that I am trying to avoid):

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{

    robodk_window = NULL;
    ui->setupUi(this);
    ui->widgetRoboDK->hide();
    adjustSize();



    // Start RoboDK API here (RoboDK will start if it is not running)
    ROBOT = NULL;
    RDK = new RoboDK("",-1,"/NOSPLASH /HIDDEN");

    if (!RDK->Connected()){
        qDebug() << "Failed to start RoboDK API!!";
    }
    // I have to hide RDK because '/HIDDEN' doesn't work
    RDK->HideRoboDK();

    // add a little delay, otherwise the integration will fail
    QThread::msleep(500);
    on_radIntegrateRoboDK_clicked();
}

The only thing I am trying to avoid using the '/HIDDEN' flag is the initial showing/hidding of RoboDK as a Top Level Window before it get integrated in the Cpp-Sample, any other ideas?

Thanks,
Francois.

from robodk-api.

vin-eet-singh avatar vin-eet-singh commented on September 27, 2024

Hi Francois,
Thank you for bringing this up. We did find a bug which will be fixed in RoboDK's next update. The next update should be in a week or so.

Do let us know if you run into any other issues.

from robodk-api.

francoislauzon avatar francoislauzon commented on September 27, 2024

Hello,
I have upgraded to the latest version of RoboDK yesterday.
The /HIDDEN flag is now working.
But if I run the example as I described it previously, RoboDK start in fullscreen and is not integrated in the Example application.
How can I start RoboDK as an integrated Qt Window at startup, is it possible?

Best regards,
François.

from robodk-api.

 avatar commented on September 27, 2024

Hi François,
I'm not sure if it possible to retrieve the ID of the main window before starting RoboDK. You may need to use a Windows API.
Albert

from robodk-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.