Jump to content

Search the Community

Showing results for tags 'qml'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to UNIGINE Forums
    • News & Announcements
    • Getting started
  • Development
    • Content Creation
    • World Design
    • Rendering
    • Animation
    • Physics, Navigation and Path Finding
    • UI Systems
    • Sound & Video
    • Editor
    • C++ Programming
    • C# Programming
    • Networking
    • Sim IG (Image Generator)
    • VR Discussions
    • General
  • Improving UNIGINE
    • Documentation
    • Feedback for UNIGINE team
    • Bug Reports
    • Unigine SDK Beta feedback
  • Community
    • Add-on Store (https://store.unigine.com/)
    • Showcase
    • Collaboration
    • Tools, Plugins, Materials & Tutorials
    • General Discussions
  • Legacy
    • UnigineScript

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 4 results

  1. Hello. I’m trying to integrate Unigine in my QML application and found some problems with it. I don`t understand how to add more than one Unigine Item in QML, although I have a close look at QT integration examples from UNIGINE SDK. The solution should be like in Viewport Qt from your samples in terms of several Unigine frames. Is it possible to implement this? If yes, how can I achieve this, if not, what would you suggest? I`m using your QML sample as a base for UNIGINE-QML integration. Examples of QML pseudocode how I would like to use Unigine in my application: 1. More preferable ApplicationWindow { id: mainWindow UnigineItem { id: unigineItem1 source: model1.node x: 5 y: 5 width: 200 height: 200 } UnigineItem { id: unigineItem2 source: model2.node x: 220 y: 5 width: 200 height: 200 } Text{ text: "Some text!" x: 5 y: 230 } } 2. Less preferable, but acceptable ApplicationWindow { id: mainWindow Window { id: unigineWindow1 UnigineItem { id: unigineItem1 source: model1.node x: 5 y: 5 width: 200 height: 200 } } Window { id: unigineWindow2 UnigineItem { id: unigineItem2 source: model2.node x: 220 y: 5 width: 200 height: 200 } } Text{ text: "Some text!" x: 5 y: 230 } }
  2. with the new versión 2.7.2.1 we have a lot of strange visual effects in qml elements that works fine in the previous versions. I've made a little modifications in the Qml sample to show how fails the tile of an image. In the attached capture you can show how the image shows a strange line instead of the image tiled, but if you don't instance the unigineItem in the main.qml the image is tiled correcly also if you rotate the camera. In our proyect appears more extrange effects but I suppouse that are all related. thanks in advance qml.qrc main.qml
  3. Hi ! I've just tried the new feature of Qt 5.10 witch is webgl streaming the Qt app to a browser without touching the code (just pass "-platform webgl" flag to the executable). For this I've tried to compile the Unigine's App/Qml sample with Qt5.10 to test it but (as expected) doesn't work. I have no idea if the problem comes from Unigine, from the integration or from Qt itself but I think this feature can be very interesting to have. I post here the steps to reproduce the crash if it can help : - Removed qt folder and qt.conf - Copy libUnigine_x64.so to the App/Qml folder - Run qmake from Qt 5.10 than make - Run the executable ./Qml -data_path ../../../../../ -data_path ./ -platform webgl - Browse to http://localhost:8080 than ... crash QObject: Cannot create children for a parent that is in a different thread. (Parent is UnigineItem(0x1aa2780), parent's thread is QThread(0x1a278c0), current thread is QSGRenderThread(0x1ab3790) (Any other apps that don't use Unigine are working fine)
  4. Qt/Qml integration

    Hi, we are trying to integrate Unigine with Qt/Qml. On windows using DX11 it work perfectly but on linux with opengl it doesn't work. We have an Unigine viewport and some Qml widget (Qt5QuickWidgets) created dynamically, when a qml widget is created both Unigine and Qt stop refreshing with the following error : OpenGL error: invalid operation Any help would be appreciated. You can reproduce it easily editing the source code of source/app/main_qt : (.zip with complete source code provided) main_qt.pro : -------------------------------- QT += core gui widgets quickwidgets main_qt.cpp : -------------------------------- // Qt #include "MainWindow.h" #include <QApplication> #include <QDesktopWidget> #include <QQuickWidget> #include <QQuickView> (...) int main(int argc, char *argv[]) { // Qt part QApplication app(argc, argv); MainWindow window; QQuickWidget *view = new QQuickWidget; view->setSource(QUrl::fromLocalFile("test.qml")); view->show(); // UnigineApp AppQt *widget = NULL; (...) test.qml : (drop it in the main_qt folder) -------------------------------- import QtQuick 2.0 Item { width: 600 height: 400 Rectangle { id: r anchors.centerIn : parent width: parent.width /2 height: parent.height /2 color: "red" } Timer { interval: 1000; running: true; repeat: true onTriggered: { console.log("Triggered " + r.color) r.color = (r.color == "#ff0000") ? "blue" : "red" } } } main_qt.zip
×
×
  • Create New...