Skip to content
  • 0 Votes
    9 Posts
    567 Views
    SGaistS

    Great !

    Since you have it working now please mark the thread as solved using the "Topic Tools" button or the three dotted menu beside the answer you deem correct so other forum users may know a solution has been found :-)

  • 0 Votes
    4 Posts
    905 Views
    SGaistS

    You should not call GUI function from a different thread. Signal and slots is the way to go.

  • 0 Votes
    2 Posts
    433 Views
    SGaistS

    Hi,

    Looks like you are on Unity. IIRC, all the menus are located in the top bar like on macOS and not on the Windows themselves.

  • 0 Votes
    4 Posts
    1k Views
    jeanmilostJ

    Thank you for the answers, they provide very valuable info. So there is no real way to have a generic PDF printer, and each developer have to write its own, by writing its own Paint() function. That was that I though, unfortunately.

    Unfortunately, because writing my own drawing function brings another issue in my case: I cannot get back the content of the delegate property encapsulated inside my TableView object, in my qml interface file from the c++ code. More exactly, I can, in the best situation, retrieve a part of these info, by getting back the items already drawn on the user interface, from the TableView cache. But as not all the items may be available in this case, I may miss important info in various scenarios, e.g.for still not painted items. Or I may also hardcode the values to use during the PDF export inside the c++ code to reflect what was did in the qml file.

    These solutions may resolve my issue in a certain manner, but are weak in terms of generating good and reusable code, especially when designers are intended to often modify the qml interface during the development cycles.

    I perhaps will explore the QTextDocument object, and the way it handles the PDF printing. However I don't know if I really can use this component to replace my qml TableView object, as its organization was exactly what I needed to show my data to the user. I will also take a look in the QtWebEngine solution, but this may work only if the text remains editable in the generated PDF, as I said in my original post above.

  • 0 Votes
    4 Posts
    712 Views
    SGaistS

    What processing are you doing with OpenCV ?

  • 0 Votes
    17 Posts
    2k Views
    E

    @Pl45m4 Already try it work on Windows but not for android

  • 0 Votes
    3 Posts
    438 Views
    S

    @SGaist Thank you so much for the quick reply.
    I finally managed to do it.

  • 0 Votes
    2 Posts
    308 Views
    A

    OK,
    Finally we found the solution. The tip is to create a Scene3D in the qml file. And to create the camera and ForwaqrdRenderer in the QML too (and not in the C++).

    Scene3D { id: scene3D anchors.fill: parent anchors.margins: 10 focus: true Root3DEntity { id : root3DEntity renderSettings : RenderSettings { id : renderSettings pickingSettings.pickMethod : pickingSettings.PrimitivePicking activeFrameGraph: ForwardRenderer { id: renderer clearColor: "#4d4d4f" camera: Camera { id: camera projectionType: CameraLens.PerspectiveProjection fieldOfView: 45 nearPlane: 0.1 farPlane: 1000.0 position: Qt.vector3d(0.0, 0.0, 2.0) upVector: Qt.vector3d(0.0, 1.0, 0.0) viewCenter: Qt.vector3d(0.0, 0.0, 0.0) } } } } }