Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.5k Posts
  • How to add .qrc and .qss files into CMake

    Solved
    2
    0 Votes
    2 Posts
    2k Views
    SGaistS
    Hi, Please take a look at the CMake Manual in Qt's documentation. It shows the macros available to handle .qrc files. The flex_ui_stylesheet.qss has nothing to do with cmake. It should be in the resource file itself.
  • Which font does QML Material style use?

    Solved
    3
    0 Votes
    3 Posts
    617 Views
    M
    Thank you!
  • Dynamic QML Page loader

    Solved
    15
    0 Votes
    15 Posts
    7k Views
    C
    @shaan7 said in Dynamic QML Page loader: Wonderful!!! You deserve more than one like!!! Thank's a lot @shaan7 !!!
  • How to use Stylesheet.qss

    Solved
    5
    0 Votes
    5 Posts
    3k Views
    S
    thanks for the reply
  • Problem width multiple ApplicationWindows activefocusitem and requestActivate()

    Unsolved
    1
    0 Votes
    1 Posts
    168 Views
    No one has replied
  • Math functions/constants in QML code: i.e. M_PI or sin/cos/tg

    Unsolved
    4
    0 Votes
    4 Posts
    5k Views
    aha_1980A
    @biskero please see here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math
  • ImageProvider error

    Solved
    5
    0 Votes
    5 Posts
    827 Views
    G
    @SGaist , I made some changes: #include "makepix.h" #include <FelgoApplication> #include <QApplication> #include <QQmlApplicationEngine> #include <QQmlContext> #include <QQuickView> int main(int argc, char* argv[]) { QApplication app(argc, argv); FelgoApplication felgo; felgo.setPreservePlatformFonts(true); QQmlApplicationEngine engine; felgo.initialize(&engine); felgo.setMainQmlFileName(QStringLiteral("qml/Main.qml")); MakePix* myMakePix = new MakePix(); engine.addImageProvider("pix", myMakePix); engine.load(QUrl(felgo.mainQmlFileName())); return app.exec(); } Now the image provider works. Thank you for your help.
  • Better approach to show waveform on screen using Qml.

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    SGaistS
    Hi, KDAB's DeclarativeWidgets might be a good starting point to integrate Qwt's widgets.
  • Audio files don't play in QML app on iPhone

    Unsolved
    15
    0 Votes
    15 Posts
    2k Views
    tomyT
    @J.Hilk Modifying the ios{ ... } block in the .pro file removed the prior errors. I also added those lines into the code of main.cpp, and installed the project via Qt Creator on the phone, but no voice yet! That is, neither sound.play(); nor onClicked: playExplosion.play() plays the audio file on the phone. :(
  • QML Circular Gauge Styling - Needle trailing colour/glow

    Unsolved
    11
    0 Votes
    11 Posts
    11k Views
    PientashekP
    @jars121 Could you put a sample code on how to get this effect using OpacistyMask and ConicalGradient? I am trying to implement this effect but with a poor result..
  • Loading UI Form from disk, logic deployed as resource

    Solved
    11
    0 Votes
    11 Posts
    1k Views
    fcarneyF
    Another option that you could use for development is to add an additional import path: engine.addImportPath("D:/Projects/qmltest/qml"); qInfo() << engine.importPathList(); Then during development you don't have to copy files.
  • How to properly style QML Texts

    Unsolved
    1
    0 Votes
    1 Posts
    185 Views
    No one has replied
  • Achieve an effect

    Unsolved
    3
    0 Votes
    3 Posts
    343 Views
    Z
    good,thank you very much
  • problem with ListView

    Unsolved
    9
    0 Votes
    9 Posts
    999 Views
    C
    ok I understood thanks for your help
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • How to get popup window with checkbox on button click

    Solved
    3
    0 Votes
    3 Posts
    765 Views
    Pablo J. RoginaP
    @sush123 if your issue is solved, please don't forget to mark your post as such. Thanks.
  • 0 Votes
    7 Posts
    2k Views
    D
    iam using ubuntu 16.04 ,also in options->devices it is showing Android settings are OK. (SDK Version: 26.1.1, NDK Version: 15.1.4119039) edit : i think it was due to NDK version ,it was 15.1 earlier .i think because of that it was giving error !! now i changed it to Android settings are OK. (SDK Version: 26.1.1, NDK Version: 19.2.5345600) now it is working fine , iam able to debug and run .. thanks All for the support ..
  • plugin.qmltype problem? 3DBars example scene does not have member

    Unsolved
    2
    0 Votes
    2 Posts
    305 Views
    gfxxG
    I update the code with slider for test some property: scene.activeCamera.yRotation: vertSlid.value scene.activeCamera.xRotation: orizzSlid.value scene.activeCamera.zoomLevel: zoomSlid.value It work perfect but still exist the error M17 ... why these?? It is only plugin.qmltype problem?
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    30 Views
    No one has replied
  • Styling a checkbox

    Solved
    3
    0 Votes
    3 Posts
    4k Views
    G
    @Gojir4 I also need to provide an image for the indicator CheckBox { id: checkBox checked: true anchors.verticalCenter: parent.verticalCenter visible: model.checkbox style: CheckBoxStyle { indicator: Rectangle { implicitHeight: 16 implicitWidth: 16 border.color: "#22add8" color: "transparent" Image { x: (parent.width - width) / 2 y: (parent.height - height) / 2 source: "images/tick.png" visible: checkBox.checked } } }