Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.7k Posts
  • Qt 6.1 RegExpValidator not work ??

    Solved
    3
    0 Votes
    3 Posts
    3k Views
    timob256T
    work code import QtQuick 2.15 import QtQuick.Window 2.12 Window { width: 640 height: 480 visible: true title: qsTr("Hello World") TextInput { id: hexNumber validator: RegularExpressionValidator { regularExpression: /[0-9A-F]+/ } } }
  • Component Destruction

    Moved Solved
    3
    0 Votes
    3 Posts
    843 Views
    G
    @IntruderExcluder Thank you so much !
  • Qt offline maps using osm tiles

    Unsolved qml map offline qtlocation osm
    12
    1 Votes
    12 Posts
    11k Views
    P
    @vpanchal @raven-worx Hi I've tried: file:///home/dev/Downloads/OsmOffline/offline_tiles/ This does not work. Am I doing something wrong? Did it work for you?
  • How to remove specific character from QML string?

    Unsolved
    2
    0 Votes
    2 Posts
    3k Views
    eyllanescE
    @CuriousPan See https://stackoverflow.com/questions/952924/javascript-chop-slice-trim-off-last-character-in-string let str = "hello word"; str = str.substring(0, str.length - 1); console.log(str); OR let str = "hello word"; str = str.slice(0, -1); console.log(str);
  • Dialog defined in other file - error on access

    Unsolved
    4
    0 Votes
    4 Posts
    367 Views
    sierdzioS
    @MasterBLB said in Dialog defined in other file - error on access: I see...and what in case I need to create SettingDialog on spacebar press, but not earlier? Either create it hidden with visible: false, or use Loader to load it when you need it.
  • QQmlApplicationEngine failed to load component

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    timob256T
    @eyllanesc said in QQmlApplicationEngine failed to load component: import QtQuick 2.12 import QtQuick 2.15 and import QtQuick 2.12 RegExpValidator not work me, Ubuntu 20 (windows 7 32 bit work 0_o) [image: 9a090312-3143-44e1-9a9b-371300ad1326.png] source: "file:res/linia.png" // так работает в линуксе [image: 11b771f9-4768-43ba-9e6c-27ca6a34a6aa.png]
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Saving app's window position - on multiple monitors and scaled Windows 10

    Unsolved
    6
    0 Votes
    6 Posts
    945 Views
    K
    Hi, I have the same problem but on a Widget App :) so maybe one of you can still help?
  • Clear text all TextField

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    N
    @IntruderExcluder Thank you
  • Building Qt Quick 2d Renderer

    Unsolved
    1
    0 Votes
    1 Posts
    222 Views
    No one has replied
  • Not visible content of StackLayout : Item

    Solved
    3
    0 Votes
    3 Posts
    396 Views
    MasterBLBM
    @IntruderExcluder that was the reason, thank you mate! I've copied the code from Assistant, but as it turned out not correctly.
  • Text flow around image possible?

    Solved
    10
    0 Votes
    10 Posts
    1k Views
    SeDiS
    @J-Hilk For now, I'll go for Grecko's straightforward alternative, because it does the job I am needing it for. But the idea of using html (if subset allows) is enticing! I will keep it in mind for more complicated situations. Thank you!
  • How to deploy a qml application? What do I do with the modules?

    Solved
    6
    0 Votes
    6 Posts
    610 Views
    SGaistS
    No windeployqt and macdeployqt manage their deployment so that you do not need to worry about them.
  • SwipeView, how to restrict the user in swiping to advance to the next page?

    Unsolved
    3
    0 Votes
    3 Posts
    307 Views
    J.HilkJ
    @Sandebs the probably easiest solution would be to work with different models and/or with a proper c++ model that changes depending on selections your user makes. maybe you'll have to restore the currentIndex after the modelChanged signal is emitted. But I'm unsure about that
  • Qml video metaData returns undefined values

    Unsolved
    1
    0 Votes
    1 Posts
    169 Views
    No one has replied
  • PieChart with tooltip

    Unsolved pieseries qml
    1
    0 Votes
    1 Posts
    167 Views
    No one has replied
  • Accessing C++ object in QML

    Unsolved
    4
    0 Votes
    4 Posts
    371 Views
    R
    You can use Connections Connections { target: _chessModel //old syntax onInvalidMove: { } onValidMove: { } //new syntax function onInvalidMove(/*params*/) { } function onValidMove(/*params*/) { } }
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • how create dynamically Qml file(.qml) from c++ ?

    Solved
    3
    0 Votes
    3 Posts
    307 Views
    paghsaP
    @paghsa unfortunately I was looking for a hard answer finally i realized that i can use QAbstractItemModle along with my custom data i just make an interface and derived from it by some custom data and in qml i simply create a list view and give the correspond model to it.
  • How to Blend overlapping SVG

    Unsolved
    1
    0 Votes
    1 Posts
    295 Views
    No one has replied