Skip to content
  • 144k Topics
    722k Posts
    V
    Here is the original code, these function is used in calibration for frame in video. void CalibrationMaterial::updateTextures(QRhi *rhi, QRhiResourceUpdateBatch *resourceUpdates) { if (!m_frameDirty and !m_calibrationDirty) return; if (m_frameDirty) { // keep the video frames alive until we know that they are not needed anymore Q_ASSERT(NVideoFrameSlots >= rhi->resourceLimit(QRhi::FramesInFlight)); m_videoFrameSlots[rhi->currentFrameSlot()] = m_currentFrame; // update and upload texture(s) m_videoFrameTextures = QVideoTextureHelper::createTextures(m_currentFrame, rhi, resourceUpdates, std::move(m_videoFrameTextures)); if (m_videoFrameTextures) { m_frameTexture.setData(QRhiTexture::R16, m_currentFrame.size(), nullptr, 0); m_frameTexture.setRhiTexture(m_videoFrameTextures->texture(0)); m_frameDirty = false; } else { qWarning("Failed to create video texture"); } } if (m_calibrationDirty) { m_calibrationRhiTexture.reset(rhi->newTexture(QRhiTexture::RGBA32F, m_calibrationImage.size())); m_calibrationTexture.setTextureSize(m_calibrationImage.size()); if (m_calibrationRhiTexture->create()) { QRhiTextureSubresourceUploadDescription subresDesc; subresDesc.setData(QByteArray::fromRawData( reinterpret_cast<const char *>(m_calibrationImage.constBits()), m_calibrationImage.sizeInBytes())); subresDesc.setDataStride(m_calibrationImage.bytesPerLine()); QRhiTextureUploadEntry entry(0, 0, subresDesc); QRhiTextureUploadDescription desc({ entry }); resourceUpdates->uploadTexture(m_calibrationRhiTexture.get(), desc); m_calibrationTexture.setTexture(m_calibrationRhiTexture.get()); m_calibrationDirty = false; } else { qWarning("Failed to create calibration texture"); } } } //======================= void updateTextures(QRhi *rhi, QRhiResourceUpdateBatch *resourceUpdates); //======================= The previous one who built this app did that, used the private header and also changed something in it. I don't understand much about that, that why I said it hard to understand especially he is experience one.
  • Jobs, project showcases, announcements - anything that isn't directly development
    4k 23k
    4k Topics
    23k Posts
    DeSGuND
    @JonB read post more once and did through qml thanks an answer
  • Everything related to designing and design tools

    127 383
    127 Topics
    383 Posts
    R
    I see this is an old thread and I see several unresolved threads on this topic. I'm leaving this incase it helps someone else who ends up here. The solution was twofold for me. Go to File > Export Project and select Enable Python Generator. This will create a main.py. Make sure you pip install PySide6-DS Hope this helps someone.
  • Everything related to the QA Tools

    77 213
    77 Topics
    213 Posts
    J
    Hello i am using WinCC OA to develop a qt application. WinCC OA has some custom elements which cannot be detected by squish for example a polygon. Squish is now not able to detect this element with the picker. I know the name of the element but as it is of WinCC OA internal i do not know the type: waitForObject( {"container": "container", "name": "POLYGON1","type": "???","visible": 1} ); How do i get this information? And what to use if unknown? Is there any other way? I mainly just need to click this element. Thanks a lot
  • Everything related to learning Qt.

    381 2k
    381 Topics
    2k Posts
    Ash_QtA
    @davidweisgerber Hey there, were you able to download your certification before it was removed? If not, please email certification@qt.io so we can help you further.
  • 2k Topics
    13k Posts
    S
    @JonB correct
  • 4k Topics
    18k Posts
    msauer751M
    @Pl45m4 Ja Hab ich. Dies ist die komplette Datei. #pragma once // Includes //--------------------------------------------------------------------------------------------------------------------- // own header // other includes // system includes #include <QtCore/qglobal.h> // Macros/Defines //---------------------------------------------------------------------------------------------------------------------- #if defined(LIBDB_LIBRARY) # define LIBDBSHARED_EXPORT Q_DECL_EXPORT #else # define LIBDBSHARED_EXPORT Q_DECL_IMPORT #endif // Forward declarations //----------------------------------------------------------------------------------------------------------------------
  • This is where all the posts related to the Qt web services go. Including severe sillyness.
    1k 10k
    1k Topics
    10k Posts
    SGaistS
    @RokeJulianLockhart to the best of my knowledge, no. The first release of Discourse was in 2014 and the forum is several years older than that.