Navigation

    Qt Forum

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

    • SOLVED WebAssembly for Qt Quick
      Installation and Deployment • qt quick deployment installer webassembly • • tansgumus  

      2
      0
      Votes
      2
      Posts
      41
      Views

      You can, it works with QtQuick.
    • SOLVED Emit signal from C++ to QML without any parameters
      QML and Qt Quick • qml c++ qt quick • • bwylegly  

      4
      0
      Votes
      4
      Posts
      113
      Views

      lvc needs to be defined as a context property before the qml engine call of load
    • UNSOLVED Qt Quick 2.6 Graphic Bugs
      QML and Qt Quick • qml qt quick bug calendar calender custom • • bluce  

      2
      0
      Votes
      2
      Posts
      56
      Views

      Try updating Intel driver, some older releases are known to be buggy. Also, Qt Quick 2.6 - are you using Qt 5.6? If so, update to some newer version like 5.12 (LTS) or 5.14.
    • SOLVED Qt Quick views 2.0 and PDF printing
      QML and Qt Quick • qt quick pdf qt 5.14 qt 6 • • jeanmilost  

      4
      0
      Votes
      4
      Posts
      257
      Views

      Thank you for the answers, they provide very valuable info. So there is no real way to have a generic PDF printer, and each developer have to write its own, by writing its own Paint() function. That was that I though, unfortunately. Unfortunately, because writing my own drawing function brings another issue in my case: I cannot get back the content of the delegate property encapsulated inside my TableView object, in my qml interface file from the c++ code. More exactly, I can, in the best situation, retrieve a part of these info, by getting back the items already drawn on the user interface, from the TableView cache. But as not all the items may be available in this case, I may miss important info in various scenarios, e.g.for still not painted items. Or I may also hardcode the values to use during the PDF export inside the c++ code to reflect what was did in the qml file. These solutions may resolve my issue in a certain manner, but are weak in terms of generating good and reusable code, especially when designers are intended to often modify the qml interface during the development cycles. I perhaps will explore the QTextDocument object, and the way it handles the PDF printing. However I don't know if I really can use this component to replace my qml TableView object, as its organization was exactly what I needed to show my data to the user. I will also take a look in the QtWebEngine solution, but this may work only if the text remains editable in the generated PDF, as I said in my original post above.
    • UNSOLVED webview security
      QML and Qt Quick • qt quick javascript webview html security • • addr3ss  

      2
      0
      Votes
      2
      Posts
      94
      Views

      @addr3ss No, it's not. Resources are compiled into the executable and can be easily extracted from there. What kine of information is it?
    • SOLVED How can I ensure both randomly generated colors are not the same?
      QML and Qt Quick • qml qt quick • • newbiSoso  

      3
      0
      Votes
      3
      Posts
      81
      Views

      Just genereate 2nd index until it is not same as 1st index: let idx1 = Math.floor(Math.random() * 3); let idx2 = Math.floor(Math.random() * 3); while (idx2 === idx1) idx2 = Math.floor(Math.random() * 3);
    • UNSOLVED QML CameraRecorder Crashing QT5.10
      QML and Qt Quick • qml qt quick qt5.10 qml camera • • andyDT  

      1
      0
      Votes
      1
      Posts
      151
      Views

      No one has replied

    • SOLVED Strange rescaling at the end of scale animation (Linux only)
      QML and Qt Quick • qml qt quick animation scale • • Cyna  

      3
      0
      Votes
      3
      Posts
      185
      Views

      @KillerSmath Time is not a problem, in my app I don't revert animation immediately but on user request and the problem still occurrs. Actually I've found a solution : simply remove Transition and instead of this use Behavior on
    • UNSOLVED Adding Marker in QT QML Map
      QML and Qt Quick • c++ qt quick udp qml map • • Double A  

      2
      0
      Votes
      2
      Posts
      422
      Views

      Why do you want to "display it in my map using one MapQuickItem only"? You will need to create multiple MapQuickItem instances to display multiple markers on map at once. You can create them statically (if their number is known in advance) or dynamically (if not).
    • UNSOLVED Qt long steep learning curve & expensive price!
      The Lounge • qt quick xamarin • • A Former User  

      17
      0
      Votes
      17
      Posts
      2333
      Views

      @Guest said in Qt long steep learning curve & expensive price!: why I need to pay money for Qt guys and Felgo?! This is absolute madness! this part caught my attention deeply. Those are companies providing a service that you may find interesting, and that may help you solve your problem(s) so why not? I'm planning to start my own -one man- company In that case, aren't you planning to be paid money? It looks like you'll be at the same level of Qt or Felgo right?
    • UNSOLVED UI/UX Mockup tool
      QML and Qt Quick • qt quick mobile uiux mockup • • A Former User  

      4
      0
      Votes
      4
      Posts
      773
      Views

      @Mehmet-Yilmaz said in UI/UX Mockup tool: Can I use Qt design as a UI/UX tool or I need to buy an external tool Well, nobody beside yourself can answer THAT question. Regards
    • New Qt Quick/ QML Video Course on The Menu
      The Lounge • qt quick tutorial • • musimbate  

      1
      0
      Votes
      1
      Posts
      313
      Views

      No one has replied

    • SOLVED javascript documentation
      QML and Qt Quick • qml qt quick javascript documentation qt widget • • tansgumus  

      5
      0
      Votes
      5
      Posts
      1105
      Views

      @tansgumus said in javascript documentation: Is there any plan to cover JavaScript docs by Qt? Currently not. As I mentioned, the Qt Project has no control over the JavaScript API, so it will not document the JavaScript API either. However, QML classes and methods are fully documented -- if you find something missing, please file a bug report.
    • UNSOLVED Build and run problems with qtquick
      General and Desktop • qt quick qt5.6 build error • • Linuxfluesterer  

      18
      0
      Votes
      18
      Posts
      3051
      Views

      @Linuxfluesterer No it's not the size of your hard drive, it's the size of the RAM allocated to that machine and how much it uses for /tmp. So do a df -h and you can post the output or at least see how much space you have on tmp. If it is less than the 1.4gb needed for the install, up it. Or as I suggested temporarily point /tmp to a hard disk if you don't have the ram for a bigger /tmp.
    • UNSOLVED Sketch SVGs in QML
      QML and Qt Quick • qml qtquick qt quick svg qt 5.10 • • stefanl  

      2
      0
      Votes
      2
      Posts
      744
      Views

      I've had problems with the way Sketch exports SVGs. Text drifts (as you have seen), and items that were rotated in Sketch unrotate themselves when exported. I'd suggest that you export as a PNG, rather than SVG.
    • SOLVED Content going above of my ListView while scrolling
      QML and Qt Quick • listview qt quick contents • • Sillimon  

      2
      0
      Votes
      2
      Posts
      706
      Views

      Found those three properties completely randomly on a completely unrelated topic post... Dropping them right here, just in case someone needs it : clip: true boundsBehavior: Flickable.DragAndOvershootBounds snapMode: ListView.SnapToItem They're doing about everything i need. I think that's a common problem beginners fall into but there is not that much topics about it.
    • UNSOLVED Dynamic QtQuick.Shapes creation
      QML and Qt Quick • qt quick qt quick shapes • • Andriy Gerasika  

      2
      0
      Votes
      2
      Posts
      587
      Views

      Hi! Thanks for reporting this. You can find the bug database at https://bugreports.qt.io
    • UNSOLVED Button Text not readable
      General and Desktop • qml qtquick qt quick dialog buttons • • Qjay  

      6
      0
      Votes
      6
      Posts
      1020
      Views

      need to check Qt classes for system settings and native look and feel, and of adopting those changes for App. Thanks,
    • UNSOLVED setting QML Drawer properties in another QML file
      QML and Qt Quick • qml qt quick properties property alias property bindin • • Qjay  

      8
      0
      Votes
      8
      Posts
      2975
      Views

      ok. Let us look at like this. Instead of web view, put the Rectangle{} Try to show & hide the rectangle instead of web-view. Till me whether it works or not. Try something like this OffLine_Pages.qml Pane{ id: view property string local_url : "" property string pid : "" property alias vis: web.visible Rectangle{ id : web width: 200;height: 200;color: "red" visible: false } }
    • SOLVED Invalid alias reference. Unable to find id
      QML and Qt Quick • qml qt quick property settings alias • • mbnoimi  

      9
      0
      Votes
      9
      Posts
      5746
      Views

      That's it @Eeli-K Thanks a lot
    • SOLVED License issue
      Mobile and Embedded • qml android qt quick google play licenses • • mbnoimi  

      4
      0
      Votes
      4
      Posts
      1111
      Views

      @JKSH That's it Thank you guys.
    • UNSOLVED How to redraw a custom QQuickItem
      Mobile and Embedded • qt quick qsggeometry • • chaithubk  

      4
      0
      Votes
      4
      Posts
      4987
      Views

      @chaithubk whenever data relevant for drawing has changed call update() on the QQuickItem and a call to updatePaintNode() (-> painting) is scheduled. Like in is mentioned in the link to the docs i've posted.
    • UNSOLVED Writing an application around the QtCreator timeline
      General and Desktop • qt quick c++ qt qt5 desktop app • • ojura  

      1
      0
      Votes
      1
      Posts
      539
      Views

      No one has replied

    • UNSOLVED Dynamically add QQuickView-based windows from c++ code and embed QObject
      QML and Qt Quick • qml qt quick • • Avedis Zildjian  

      2
      0
      Votes
      2
      Posts
      945
      Views

      I found some kind of workaround that helps me with it, but I'm not sure if it is very smooth solution. Here is a new code for window creation: QQmlEngine *engine = new QQmlEngine; MyWindow *window = new MyWindow (engine); window->setSource(...); window->rootContext()->setContextProperty("window", window); window->show(); With this each window is associated with the correspondng QObject. But is it a good solution - to create separate QQmlEngine for each window?
    • SOLVED Falscher Default Style?
      German • qt creator qt quick theme windows 98 • • archer96  

      6
      0
      Votes
      6
      Posts
      2156
      Views

      Also, was hab ich jetzt abschließend gemacht? Da meine Qt Kenntnisse (noch) nicht ausreichen, um vernünftig mit styleplugins zu arbeiten, habe ich zu Linux Mint 18.1 KDE gewechselt. Wollte ich eh schon länger. Dort wird das passende Theme verwendet. :-) Es gibt auch mehrere Bug-Reports für den Cinnamon Desktop unter Linux Mint, die alle das gleiche Problem mit Qt >=5.7 haben. Eine passende Lösung für mich konnte ich nicht finden. Grüße, Andre
    • SOLVED QCombobox with key and value
      QML and Qt Quick • qml qt quick model qcombobox key and value • • tamlong0205  

      4
      0
      Votes
      4
      Posts
      1486
      Views

      I had create a model with key and value and pass it to qml, it worked!!! Sorry for late reply. Thank you @raven-worx
    • UNSOLVED How to compile linux app using windows
      General and Desktop • linux windows qt quick cross-compiling • • orzel1244  

      7
      0
      Votes
      7
      Posts
      1503
      Views

      To build QtCharts calling qmake CONFIG+=debug_and_release make debug make release make install should be enough to build and install it
    • SOLVED Error - when adding the qml file to the project.
      General and Desktop • qml qt quick error • • Mathan M  

      5
      0
      Votes
      5
      Posts
      1352
      Views

      @p3c0 Thanks a lot.
    • UNSOLVED Problem with GridView
      QML and Qt Quick • qt quick gridview • • lorow23  

      4
      0
      Votes
      4
      Posts
      833
      Views

      @lorow23 but how I should acces particular rectangles then? With the model approach it wont be required. The delegate items will get the data from model. Also when required you just need to update the model with new data from the delegate or from outside. For eg. ListModel has several methods to access the data.
    • UNSOLVED Load time for the maps
      QML and Qt Quick • qml qt quick esri • • Mathan M  

      2
      0
      Votes
      2
      Posts
      712
      Views

      @Mathan-M said: appWindow.timeChanged() Where is that time property? Also, if there would be such a property, then timeChanged would be a signal.
    • SOLVED Disabling swipe for QWebEngineView
      QML and Qt Quick • qml qt quick webengineview swipeview swipe • • Phoenox  

      2
      0
      Votes
      2
      Posts
      1627
      Views

      First a note that SwipeView and its base type Container have gained some new members in Qt Quick Controls 2.1 in the upcoming Qt 5.8. These will help with your tasks: SwipeView::interactive Container::incrementCurrentIndex() Container::decrementCurrentIndex() For the time being, you could add the following binding as a temporary workaround until you will be able to use the new public interactive property: Binding { property: "interactive" target: swipeView.contentItem value: swipeView.currentIndex !== indexOfWebEngineView }
    • UNSOLVED Failed to Build boot2qt open source
      Installation and Deployment • qt quick qt 5.7 boot2qt opensource build steps • • TomsBrook  

      10
      0
      Votes
      10
      Posts
      4737
      Views

      @Newsages I've been building for Boundary Devices Sabrelite board (MACHINE=nitrogen6x). I have not tried to build for the emulator.
    • UNSOLVED QML - How display a text file on ListView?
      General and Desktop • qml qt quick text qstringlist • • justlooking  

      3
      0
      Votes
      3
      Posts
      2544
      Views

      I can't say that I understood your code, but if you'll change the return value of your reading method (read(), I presume) to QStringList, then you can display it with ListView in QML like this: ListView { //Layout.preferredHeight: childrenRect.height model: myFile.read() delegate: Text { text: modelData } }
    • SOLVED Qt Quick designer tutorial
      QML and Qt Quick • qt quick qt designer • • kirikhu  

      6
      0
      Votes
      6
      Posts
      1546
      Views

      You're welcome ! Since you have now material to go on, please mark the thread as solved using the "Topic Tools" button so that other forum users may know an answer has been found :)
    • UNSOLVED Populate Listview from Database
      QML and Qt Quick • qml listview qt quick qt 5.7 database • • Qjay  

      4
      0
      Votes
      4
      Posts
      2014
      Views

      thanks @veryqtperson . I will try to implement it
    • UNSOLVED How to add private uri to QML Plugin
      QML and Qt Quick • qml c++ qt quick plugin • • shav  

      2
      0
      Votes
      2
      Posts
      974
      Views

      workaround A: register private types in initializeEngine() instead workaround B: remove the protected module identifier line from the qmldir file
    • UNSOLVED How to make ListElement a button in Drawer ?
      QML and Qt Quick • qml qt quick qt 5.7 button listmodel • • Qjay  

      2
      0
      Votes
      2
      Posts
      1771
      Views

      you should use a Flat Button to do this here's an example how you can do this. import QtQuick 2.6 import QtQuick.Layouts 1.3 import QtQuick.Controls 2.0 import QtQuick.Controls.Material 2.0 // Flat Button Button { id: button property alias textColor: buttonText.color focusPolicy: Qt.NoFocus Layout.fillWidth: true Layout.preferredWidth : 1 leftPadding: 6 rightPadding: 6 contentItem: Text { id: buttonText text: button.text opacity: enabled ? 1.0 : 0.3 color: Material.primaryColor horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter elide: Text.ElideRight font.capitalization: Font.AllUppercase font.weight: Font.Medium } background: Rectangle { id: buttonBackground implicitHeight: 48 Layout.minimumWidth: 88 color: button.pressed ? buttonText.color : "transparent" radius: 2 opacity: button.pressed ? 0.12 : 1.0 } // background } // button feel free to modify the Button to fit into your UI in my blog series about Qt 5.7 QtQuickControls2 you'll find more infos: http://j.mp/qt-x
    • Process returned JSON in webview
      General and Desktop • qml qt quick webview json • • Qjay  

      4
      0
      Votes
      4
      Posts
      1537
      Views

      In answer to my original question i did something like this onUrlChanged: { console.log(searchwebview.url); test_json(); } and i made this function to parse the returned JSON ( this function is not perfect yet ) function test_json() { var p_url = searchwebview.url var http = new XMLHttpRequest(); var json , parse , text , rev_id; http.onreadystatechange = function(){ if(http.readyState == 4 && http.status == 200) { json = http.responseText; parse = JSON.parse(json); rev_id = parse.parse.revid; console.log(rev_id); text = parse.parse.text["*"]; //console.log(text); // <-- STRIP ME (o.O) while(text.match(/&#39;\/index.php/)){ text = text.replace(/&#39;\/index.php/, "http://en.wikitolearn.org/index.php"); text = text.replace(/&amp;/,"&"); text = text.replace(/MathShowImage&amp;/, "MathShowImage&") text = text.replace(/mode=mathml&#39;/, "mode=mathml\""); text = text.replace(/<meta class="mwe-math-fallback-image-inline" aria-hidden="true" style="background-image: url\(/ ,"<img style=\"background-repeat: no-repeat; background-size: 100% 100%; vertical-align: -0.838ex;height: 2.843ex; \" src=\""); text = text.replace(/<meta class="mwe-math-fallback-image-display" aria-hidden="true" style="background-image: url\(/ ,"<img style=\"background-repeat: no-repeat; background-size: 100% 100%; vertical-align: -0.838ex;height: 2.843ex; \" src=\""); text = text.replace(/&amp;mode=mathml\"/ , "&mode=mathml>\""); text = styling + text; } console.log(text); // after strip :p . webview.loadHtml(text); } }; http.open('GET',p_url); http.send(); }
    • UNSOLVED Webview is not loading more than 1 page
      General and Desktop • qml qt quick qt 5.7 webview • • Qjay  

      1
      0
      Votes
      1
      Posts
      382
      Views

      No one has replied