Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. resources
    Log in to post

    • SOLVED Can I create a static library from QML and use that with my executable?
      QML and Qt Quick • qml cmake resources • • rhvonlehe  

      3
      0
      Votes
      3
      Posts
      549
      Views

      @sierdzio Thank you.
    • UNSOLVED PNG Image not showing in QLabel
      General and Desktop • qt creator qlabel resources qt 5.8 png • • Jamie_Edwards  

      8
      0
      Votes
      8
      Posts
      2794
      Views

      Hi Jamie, Could you put the relevant parts in a minimal compilable example? otherwise we only can guess...
    • UNSOLVED Handling graphics resources
      QML and Qt Quick • qml opengl memory resources • • roxlu  

      1
      0
      Votes
      1
      Posts
      440
      Views

      No one has replied

    • Qt Resources question when loading plugins
      General and Desktop • plugins resources • • VRHans  

      4
      0
      Votes
      4
      Posts
      1266
      Views

      @VRHans seems i was wrong afterall: QResource::registerResource() But you have to provide the resource binary (.rcc file). Created with the following command: rcc -binary myresource.qrc -o myresource.rcc
    • SOLVED Reload/change Icons on style change
      General and Desktop • styles resources icons • • Imunar  

      7
      0
      Votes
      7
      Posts
      3693
      Views

      thanks @raven-worx I've got the point and mark this one as solved thanks for your support!
    • SOLVED Error creating a QQmlComponent (resource not found)
      QML and Qt Quick • qml error cmake resources • • jonyAL  

      5
      0
      Votes
      5
      Posts
      2252
      Views

      I solved this problem. I just added this lines in my CMakeLists.txt qt5_add_resources(QT_RESOURCES_CPP resources/qml.qrc) add_executable(my_app src/my_app.cpp src/my_app.h ${QT_RESOURCES_CPP}) target_link_libraries(my_app lib1 lib2 ...) The problem was that I was adding my reference to QT_RESOURCES_CPP in the target_link_libraries(...) instead of add_executable(...). For some reason this didn't work properly. Thank you, Jonatan
    • UNSOLVED Qt Labs Controls & icon resources
      QML and Qt Quick • scaling controls 2 resources icons labs.controls • • morte  

      2
      0
      Votes
      2
      Posts
      994
      Views

      icons depend on DevicePixelRatio and are named this way: myIcon.png - corresponds to 1.0 and mdpi - use this name in qml myIcon@2x.png - 2.0 and xhdpi myIcon@3x.png - 3.0 and xxhdpi myIcon@4x.png - 4.0 and xxxhdpi if you want to know the DevicePixelRatio: C++ qApp->primaryScreen()......
    • SOLVED Qt and standard resource system
      Installation and Deployment • resources • • szaman  

      9
      0
      Votes
      9
      Posts
      4246
      Views

      @Chris-Kawa Hi Could you pls help me understanding the last point "Use".... I have project which has four .qml files... i have created rcc from qrc...i have loaded .rcc instead of loadin qml...but still i dont know how to use it to display the window which is present in the qml.
    • SOLVED cc1plus.exe: out of memory | 60MB encrypted resource file
      Tools • error qrc resources rcc cc1plus.exe • • Slv007  

      12
      0
      Votes
      12
      Posts
      7667
      Views

      @Slv007 : Thank you. This should be an acceptable answer.
    • SOLVED How can I ensure proper resource management (RAII) when using Qt Plugins?
      General and Desktop • qt5 plugins resources • • Jakob  

      7
      0
      Votes
      7
      Posts
      3993
      Views

      @Jakob You're welcome. I was a bit concerned that I'm not making my explanation clear enough, but happily that doesn't seem to be the case. Good luck! Kind regards.
    • The RCC tool fails to create large resource files
      General and Desktop • qrc resources rcc • • Phataas  

      6
      0
      Votes
      6
      Posts
      2762
      Views

      @alex_malyu I re-read and you are right. I was sure that only the main expansion file was downloaded and that the patch file download had to be initiated by the app, but this is not the case. At least for now a work around is using two files, but I might get the same problem when the app expands. I am using Windows 7 64-bit and have tried MinGW 4.9.2 compiler on Qt 5.5, MinGW 4.9 on Qt 5.4.2 and MinGW 4.8 on 5.3. I also tried MSVC2012 on Qt 5.5. I will try post a bug report and see if someone can reproduce the same.
    • [solved]How to embed qm translation files into executable
      General and Desktop • resources qtranslator embed • • panch  

      3
      0
      Votes
      3
      Posts
      3070
      Views

      Hi and welcome to devnet, Glad you found out and thanks for sharing ! Since you have it working now, please update the thread title prepending [solved] so other forum users may know that a solution has been found :)
    • Aplicativo Windows com Quick.2 aparecendo tela branca em outros computadores.
      Portuguese • qml static resources static qt msys • • Dan Rosen  

      1
      0
      Votes
      1
      Posts
      516
      Views

      No one has replied

    • Windows application appears blank screen on other computers.
      General and Desktop • qml qtquick2 resources static qt • • Dan Rosen  

      6
      0
      Votes
      6
      Posts
      2023
      Views

      You could compile into a single exe. But that requires commercial license. Most people just combine the exe with Qt dll's. These can be found here, note that *.d.dll are for debug. C:\Qt\Qt5.4.1\5.4\mingw491_32\bin For my version at least.