Navigation

    Qt Forum

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

    • UNSOLVED why doesn't it draw PathLine ??
      QML and Qt Quick • qt quick quick qt5.11 • • timob256  

      2
      0
      Votes
      2
      Posts
      64
      Views

      If I understood correctly, you want to draw a red line. The purpose of Path is to position elements through a path. Think of a row or a column that's not straight. You can understand better if you run the first example from this tutorial. To draw paths you need Shape. import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick.Shapes 1.12 Window { width: 640 height: 480 visible: true title: qsTr("Редактор персонажей") Shape { ShapePath { strokeColor: "red"; // it works :) startX: 0; startY: 100 PathLine { x: 640; y: 480 } } } }
    • UNSOLVED how in Qt Quick draw line ???
      QML and Qt Quick • quick 3d canvas 2d graphics • • timob256  

      2
      0
      Votes
      2
      Posts
      90
      Views

      @timob256 I entered "Qt Quick draw line" in Google and got this: https://doc.qt.io/qt-5/qml-qtquick-pathline.html
    • SOLVED How to manually activate CheckBox blue focus indicator ?
      QML and Qt Quick • qml quick checkbox quick controls • • Mixlu  

      2
      0
      Votes
      2
      Posts
      118
      Views

      Problem solved by calling chekbox.forceActiveFocus(Qt.TabFocusReason)
    • UNSOLVED Implement custom QML FlowLayout
      QML and Qt Quick • qml layout quick flow flowlayout • • Phoenox  

      1
      0
      Votes
      1
      Posts
      111
      Views

      No one has replied

    • SOLVED Develop for android java issues
      General and Desktop • android quick mobile • • Phips04  

      28
      0
      Votes
      28
      Posts
      1560
      Views

      @Phips04 Your welcome
    • UNSOLVED Quick Compiler resources are not visible
      General and Desktop • quick static linking quickcompiler • • Jarek B  

      5
      0
      Votes
      5
      Posts
      434
      Views

      I found out that between two cases (working and not working one) only file that differs substantially is qmlcache_loader.cpp. In non-working case it was over 5 times smaller than normally, and that's because 80% of all resources were not there. Now, the only reason why it's happened is because some qrc files has been added to RESOURCES twice, and only those resources were available at the end. Why it worked after moving file from one qrc file to another? Probably because only those part of the project which depends on that two files has been updated and though every qrc file has been included only once (duplicates was in my case in the other part of the project). EDIT: Before marking it as solved I will try to confirm all of the above hypothesis.
    • SOLVED [OSX] Window is blank until forced repaint
      QML and Qt Quick • qml cmake mac quick osx • • mbise1993  

      3
      0
      Votes
      3
      Posts
      811
      Views

      It does look like a similar issue. I was able to find a workaround thanks to this bug report. Setting the target OSX version to 10.12 in CMake did the trick.
    • UNSOLVED Qt Quick Controls 1 ScrollView Scrolling Issue
      QML and Qt Quick • qml quick scrollview scrollbar controls 1.4 • • narayanan.krish  

      1
      0
      Votes
      1
      Posts
      418
      Views

      No one has replied

    • SOLVED How to increase the "scrolling height" of a Qml ListView?
      QML and Qt Quick • qml listview quick flickable • • daljit97  

      13
      0
      Votes
      13
      Posts
      3189
      Views

      @GrecKo oh thank you very much. I confused bottomMargin for anchors.bottomMargin. I wasn't aware of this property being available. This is exactly what I needed!
    • UNSOLVED 在quick桌面程序,如何使用外部gl库来绘制一个子窗口
      Chinese • quick paint external render 外部渲染器 • • Angelking  

      2
      1
      Votes
      2
      Posts
      2224
      Views

      @Angelking 恰好我也在做这方面的研究。 我的需求是,为我们的动作编辑器增添Direct3D的支持,因为用户更加习惯MME----这是一个基于HLSL的渲染框架。 这里问题在于我们使用的是Qt Quick,而现有的代码是和OpenGL深度绑定的,我们需要做的是考察哪些地方和OpenGL深度绑定的,然后尝试抽象出来,做好做成一个插件,我是考察Qt插件的写法决定将OpenGL相关的内容放在插件里实现。 想让Qt Quick应用和OpenGL和Direct3D解耦,我想一个方法就是使用RTT技术。就是采用不同的渲染器在一个纹理图上渲染,这样有可能通用。但是其中的难点感觉还是挺多的,现在在艰难地攻克。
    • SOLVED Designer plugin for custom library types/controls?
      QML and Qt Quick • plugin quick designer • • LScott  

      11
      0
      Votes
      11
      Posts
      3720
      Views

      After some tinkering, I've gotten the designer plugin to work the way I originally wanted. I simply commented out the 'module' directive in the 'qmldir' file: # module MyLib typeinfo plugin.qmltypes plugin MyLib ../ designersupported and added some qmake targets to automatically run 'qmlplugindump' post-build. So now my plugin directory structure looks like this: /imports |---MyLib.dll (or libMyLib.so) |---/MyLib |---|---qmldir |---|---plugin.qmltypes Now I can get the plugin to run in 'qmlscene': qmlscene -I <imports directory> <main qml file> There are only two caveats in this case. First, QML files that are to import anything from the library must first import 'MyLib 1.0' before importing anything else ('MyLib.Rectangle', 'MyLib.Circle', etc.). This is so that the plugin is loaded initially to populate the other imports. Secondly, this will produce the following message when the plugin is loaded: Module 'MyLib' does not contain a module identifier directive - it cannot be protected from external registrations. However in my case, this is not an issue and can be safely overlooked.
    • SOLVED Animations with dynamic content
      QML and Qt Quick • qml quick states animations • • dv__  

      5
      0
      Votes
      5
      Posts
      1986
      Views

      @dv__ said in QML animations with dynamic content: Also, just out of curiosity, in a more generic case (say, some arbitrary, non-grid arrangement), would my approach make sense? I suppose I could still use ListModel in this case, but the arrangement would have to be done manually, not with an existing view. To do this I'd use a raw Item container with a Repeater and manual positioning in the delegates.
    • UNSOLVED Approach for a museum video player and selector
      QML and Qt Quick • qml video quick museum selector • • zoulock  

      4
      0
      Votes
      4
      Posts
      1282
      Views

      @GrecKo thanks for your comment. I've managed to create the window in which people would touch the video, but I'm not sure how to make the player. I've seen there is a library, Qt media, but I don't really know how to bind it with the other screen.
    • UNSOLVED froglogic Releases Code Coverage Tool for Qt Quick and QML Applications
      Announcements • qml quick code coverage • • reggie  

      1
      2
      Votes
      1
      Posts
      900
      Views

      No one has replied

    • QtCreator in Design say "found not working import file:// ... module ... not installed". How did I do ?
      Tools • qml quick design modules qtcreator 4.0.2 • • Watchara Kangkun  

      4
      0
      Votes
      4
      Posts
      2531
      Views

      You have to enable Use QML emulation layer that is built with the selected Qt in the settings, since Qt Creator does ship with Canvas3D. Note that Canvas3D is not officially supported in the designer, though.
    • SOLVED Move QML ListView via buttons
      QML and Qt Quick • qml listview qt 5.7 quick • • Julien B  

      7
      0
      Votes
      7
      Posts
      7466
      Views

      Thanks @jpnurmi, This is exactly what i was looking for, all my issues are solved.
    • UNSOLVED Smart way to connect QML GUI objects to C++ audio processing chain?
      QML and Qt Quick • qml c++ quick audio audio qml • • Yosemite  

      1
      0
      Votes
      1
      Posts
      646
      Views

      No one has replied

    • UNSOLVED QML 5.7: modoule "QtWebview" is not installed
      QML and Qt Quick • qml quick webview qtwebview • • mafhoom  

      3
      0
      Votes
      3
      Posts
      2009
      Views

      Hi and welcome to devnet, Why not free anymore ? Looks rather like a licensing issue. LGPLv2.1 has been replaced by LGPLv3.
    • SOLVED [SOLVED] How to get Object's pointer instantiated in QML engine
      QML and Qt Quick • quick mvc engine • • Kofr  

      2
      0
      Votes
      2
      Posts
      1323
      Views

      http://www.qtcentre.org/threads/66403-How-to-get-Object-s-pointer-instantiated-in-QML-engine?p=291959#post291959
    • UNSOLVED How to learn Qt Advanced level?
      General and Desktop • quick source code core • • Kofr  

      3
      0
      Votes
      3
      Posts
      1188
      Views

      Hi, code.qt.io is the central repository of all Qt's code. Start from the qtbase module to have the basic pieces. If you would like to learn the internal, helping fixing bugs will also give you a better understanding of how things are working.
    • UNSOLVED Accessing item delegate by model index or why Quick sucks when working with models?
      QML and Qt Quick • model quick mvc treev • • Kofr  

      11
      0
      Votes
      11
      Posts
      5363
      Views

      @p3c0 said: @Kofr So is it that you want to access the roles (namely hue, saturation, brightness) values from outside of this ListView delegate ? If so then did you accessing ListVIew model from outside ? Once you get hold of it the data can be accessed too. code above is just example, not my case. what I need is to get model.roleName of delegate j when I work in delegate i
    • UNSOLVED Problem with Map and MapPolygon
      QML and Qt Quick • qml quick map location mappolygon • • Miime  

      6
      0
      Votes
      6
      Posts
      2036
      Views

      @Wieland Thank you for testing :) I've done a bugreport: https://bugreports.qt.io/browse/QTBUG-53046
    • UNSOLVED QtQuick w/o widgets
      Qt Contribution • widgets quick gerrit • • Andriy Gerasika  

      2
      0
      Votes
      2
      Posts
      1561
      Views

      Hi, Since those are the same patches you should only target one branch. If it's the wrong one, don't worry it will be changed for you. In order to get them move forward, you should add reviewers that are concerned by your patches e.g. the module maintainers. One probable remark you will have is that your patch modifies several unrelated stuff so you should split them in order to ensure atomic changes e.g. one disables the item view part, another one the shortcut etc.
    • How to Flip Left/Right an qml Item in shader?
      QML and Qt Quick • quick shader horizontal flip • • dhuta  

      1
      0
      Votes
      1
      Posts
      673
      Views

      No one has replied

    • UNSOLVED How to Flip Left/Right an qml Item in shader?
      General and Desktop • quick shader horizontal flip • • dhuta  

      1
      0
      Votes
      1
      Posts
      689
      Views

      No one has replied

    • UNSOLVED QScrollArea in Qml: Flickable + QQuickPaintedItem
      QML and Qt Quick • qml quick flickable qscrollarea • • alan73  

      1
      0
      Votes
      1
      Posts
      935
      Views

      No one has replied

    • SOLVED QML TableView on iOS works with Qt 5.5.0 and does not work with Qt 5.5.1
      QML and Qt Quick • qml ios tableview quick • • voptiplex  

      5
      0
      Votes
      5
      Posts
      1874
      Views

      Hi, I finally got the latest 5.6.0 baseline compiled for iOS and can confirm that 5.6.0 does not show this tableview error. Thanks for your help, well appreciated !! BR, Thomas
    • UNSOLVED Toggle VSync during runtime with QtQuick/QSG
      General and Desktop • quick scene graph qsgrenderthread • • athairus  

      2
      0
      Votes
      2
      Posts
      1267
      Views

      Hi and welcome to devnet, I'd recommend posting this question to the interest mailing list. You'll find there Qt's developers/maintainers (this forum is more user oriented)
    • UNSOLVED Qt Creator 3.5.1 qmake errors with Qt 5.5.1
      General and Desktop • quick compilation qt 5.5.1 qtcreator 3.5.1 • • hwe1973  

      6
      0
      Votes
      6
      Posts
      2398
      Views

      That one's a classic (and a question that regularly comes back)
    • UNSOLVED Why can't I use ternary operator with onClicked
      QML and Qt Quick • qml quick • • sosun  

      3
      0
      Votes
      3
      Posts
      3986
      Views

      Hi, There's a conversion done when you set the color property thus currently what you are doing is comparing a color with a string. The solution is: background.color = Qt.colorEqual(background.color, "steelblue") ? "purple" : "steel blue"
    • UNSOLVED Deploying Qt Quick Desktop Application
      QML and Qt Quick • qml deployment quick deploy deploying • • Marco B  

      1
      0
      Votes
      1
      Posts
      856
      Views

      No one has replied

    • Partially transparent image
      QML and Qt Quick • image quick embedded qt transparent • • jimmy274  

      4
      0
      Votes
      4
      Posts
      1904
      Views

      @jimmy274 You're Welcome :) A more interesting way but through C++ would be to use QQuickPaintedItem to create your own custom item. You can re-implement paint method to draw your custom shapes, text etc.. It uses QPainter to achieve this. Try looking for setCompositionMode and setClipRegion methods. An example for QQuickPaintedItem is here.
    • Scope in QML
      QML and Qt Quick • qml quick slots signals scope signalsslots • • Anas A. Ismail  

      3
      0
      Votes
      3
      Posts
      1392
      Views

      @JKSH Thanks for your help, May you help me more by writing a sample code for this ? Thanks
    • Shortcuts for Labels with TextFields
      QML and Qt Quick • qml quick shortcuts action hotkey buddy • • slesa  

      1
      0
      Votes
      1
      Posts
      633
      Views

      No one has replied

    • First code drop of our version of QT Declarative 2d (Quick2)
      Mobile and Embedded • arm quick freescale flir prevas • • mgrunditz  

      1
      0
      Votes
      1
      Posts
      666
      Views

      No one has replied

    • Problem with first QML progarm(texteditor)
      QML and Qt Quick • qml quick • • saeed  

      3
      0
      Votes
      3
      Posts
      1167
      Views

      yes my creator is 3.2.1 but i like understand how a qml file run with plugins!?
    • Question about QML import
      QML and Qt Quick • qml quick • • shav  

      3
      0
      Votes
      3
      Posts
      962
      Views

      @mcosta Thanks for the reply. If I will not find any other ways I'll use different files.
    • Meet osgQtQuick 2.0!
      Announcements • qml c++ quick osg openscenegraph osgearth • • podsvirov  

      2
      0
      Votes
      2
      Posts
      1206
      Views

      Now it's distributed as package of MSYS2 project.
    • Meet osgQtQuick 2.0! (Integrating OpenSceneGraph with Qt Quick)
      3rd Party Software • qml quick osg openscenegraph osgearth • • podsvirov  

      7
      0
      Votes
      7
      Posts
      4623
      Views

      Now it's distributed as package of MSYS2 project. Type in the appropriate shell: pacman -S mingw-w64-i686-osgQtQuick or pacman -S mingw-w64-x86_64-osgQtQuick To run test game script: wget https://github.com/podsvirov/osgqtquick/raw/develop/tests/sokoban.qml qmlscene sokoban.qml