Comments (5)
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.
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.
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.
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.
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)
- Wrong string format for double type HOT 4
- Access real robot camera and gripper. HOT 1
- C API: RoboDK_Collisions does not appear in robodk_api_c.h HOT 1
- C API: Extraneous console prints present in robodk_api_c.c HOT 1
- Problem in controlling the robotic arm from the software HOT 3
- Possible to overwrite motion planning module as a plugin? HOT 1
- Using RoboDK Docker image HOT 3
- Difference between Disconnect() and Finish() HOT 1
- RoboDK License in docker container HOT 1
- MakeProgram freeze HOT 6
- Copied Rotational Matrices in Degree and not Rad HOT 2
- RoboDK Python interface does not support v3.11 HOT 1
- Incorrect CMake build instructions in ReadMe HOT 1
- Python API: In robomath.py, multiple issues with transl function HOT 1
- MoveJ can not simulate HOT 1
- ERROR: Package 'robodk' requires a different Python: 3.8.10 not in '<3.5' HOT 9
- Asking about online programming for Denso robot arm, not included in RoboDK library HOT 1
- robolink.Robolink modifies list passed to args HOT 2
- `robolink.Robolink.ShowMessage()` prints message in command line HOT 2
- robolink.py type-hinting missing for setAsJointTarget and setAsCartesianTarget methods HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robodk-api.