Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.6k Posts
  • module "QtNetwork" is not installed

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    Z
    ok figured it out. Here is the working .pro file: QT += quick quickcontrols2 network CONFIG += c++11 SOURCES += main.cpp RESOURCES += qml.qrc QML_IMPORT_PATH = $$PWD QML_DESIGNER_IMPORT_PATH = $$QML_IMPORT_PATH QQmlApplicationEngine { qmlProtectModule("Qt.Network", 1); } # Additional compiler flags (if any) QMAKE_CXXFLAGS += -Wall # Additional linker flags (if any) QMAKE_LFLAGS += # Additional libraries (if any) LIBS += This .pro file specifies that the project requires the QtQuick, QtQuickControls2, and QtNetwork modules, and sets the C++ version to c++11. The main.cpp file is listed as the project source file, and the qml.qrc file is listed as a project resource file. The QML_IMPORT_PATH and QML_DESIGNER_IMPORT_PATH variables are set to the current working directory, and the QQmlApplicationEngine line adds a module import statement for the Qt.Network module to avoid a QML import error.
  • Struggling to Import Module

    Unsolved help module qtcreator import problem
    4
    0 Votes
    4 Posts
    1k Views
    B
    Apparently, there is a way. Quit and reboot Qt. However, now I'm having an issue with the next module in the tutorial series. This one's issue does not match the ones above. Hmm...
  • QtQuick Layouts columnSpan

    Unsolved
    1
    0 Votes
    1 Posts
    143 Views
    No one has replied
  • Deriving "leftover" space value

    Solved
    6
    0 Votes
    6 Posts
    394 Views
    fcarneyF
    @mzimmers said in Deriving "leftover" space value: but once I emptied the trash https://www.youtube.com/watch?v=Wf7seK3n9rE sorry, not sorry
  • QAudioProbe unknown component

    Unsolved
    1
    0 Votes
    1 Posts
    95 Views
    No one has replied
  • Depth ordering with QSG

    Unsolved scengraph qsg
    1
    0 Votes
    1 Posts
    303 Views
    No one has replied
  • How to size constrain a ColumnLayout?

    Solved
    9
    0 Votes
    9 Posts
    623 Views
    mzimmersM
    @ankou29666 it turns out that the problem only occurs when I use a Module I created to create a custom list display. I'm going to close this topic and start a new one focused on that. Thanks to all who looked...
  • How to hide/remove plotArea in QML Chartview

    Solved
    5
    0 Votes
    5 Posts
    690 Views
    ndiasN
    @Praveen-Illa , I think it is not possible to do it. Maybe you can create a "custom" chart using canvas. You can check this example: https://www.ics.com/blog/creating-qml-controls-scratch-linechart
  • Missing termplates in Qt6?

    Solved
    7
    0 Votes
    7 Posts
    491 Views
    sierdzioS
    Or newer ones from here: https://download.qt.io/official_releases/qtcreator/
  • QZXing: How to draw rectangle around detected barcodes?

    Unsolved
    2
    0 Votes
    2 Posts
    311 Views
    sierdzioS
    @zeroalpha Take a look at this project for example: https://github.com/milosolutions/mbarcodescanner
  • meaning behind Qt quick name?

    Unsolved
    2
    0 Votes
    2 Posts
    171 Views
    sierdzioS
    @agmar I think originally it was mean to be some acronym but it's meaning is lost to history. And in general it is faster to prototype stuff in QML so the name makes sense.
  • What is the benefit of using multiple prefixes in qml.qrc file?

    Unsolved
    2
    1 Votes
    2 Posts
    290 Views
    JoeCFDJ
    @niquedegraaff can you open your qml.qrc file in an text editor and take a look at it? And try with and without prefix.
  • Customizing contentItem of ScrollBar

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    mzimmersM
    Update: I just installed Qt 6.6.0 and built my app. Still have the same problem, but now, I get an error: QML Rectangle: The current style does not support customization of this control (property: "background" item: QQuickRectangle(0x193c8278c30, parent=0x0, geometry=0,0 0x0)). Please customize a non-native style (such as Basic, Fusion, Material, etc). For more information, see: https://doc.qt.io/qt-6/qtquickcontrols2-customize.html#customization-reference Following the link, I see this note: Note: The macOS and Windows styles are not suitable for customizing. [...] So...I guess I won't be using the Windows style (which is entirely fine by me). So the takeaway is, if you're going to customize controls, choose one of the custom styles.
  • Qml, Image, source, QUrl, png, githubAPI

    Solved
    2
    0 Votes
    2 Posts
    281 Views
    J
    It was stupid problem, but when moved forward and ignoring it i found out how to fix it. You need to download additionaly WebEngine module or Qt Image Formats.
  • No matter what, QT Creator refuses to 'see' the included qml file

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    N
    @kkoehne Ah, I see. Thank you
  • Label ComboBox - how to call an image

    Unsolved
    1
    0 Votes
    1 Posts
    235 Views
    No one has replied
  • Regarding Gauge control in Qt6

    Unsolved
    6
    0 Votes
    6 Posts
    914 Views
    P
    @JoeCFD - Thank you for sharing the bug item. Any ideas how to implement this control is much appreciated. Thank you
  • Error on closing app

    Solved
    4
    0 Votes
    4 Posts
    344 Views
    mzimmersM
    @GrecKo yep, that was it (I should have figured that out myself). Curiously, when I re-ordered the declarations in my main.cpp to this: int main(int argc, char *argv[]) { Manager manager; QGuiApplication app(argc, argv); QQmlApplicationEngine engine; I got a message on startup: qt.core.qobject.connect: QObject::connect(QObject, Unknown): invalid nullptr parameter Re-ordering to this eliminated the error: int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); Manager manager; QQmlApplicationEngine engine; I stepped through it in the debugger, and traced it to something in the ensureInitialized() call within a QNetworkAccessManager c'tor. Not really sure what was happening -- again, the application seemed to work just fine. Thanks for the answer.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Turn off connection in Popup window

    Solved
    2
    0 Votes
    2 Posts
    185 Views
    D
    I solved the above problem thanks to : enabled: true and enabled: false , on the Connection component.