Skip to content

Qt Development

Everything development. From desktop and mobile to cloud. Games, tools, 3rd party libraries. Everything.
142.0k Topics 710.3k Posts

Subcategories


  • This is where all the desktop OS and general Qt questions belong.
    82k Topics
    450k Posts
    J

    @Pl45m4 Hi, I use below code to adjust widget size and the scroll bar is hide.Thank you very much.

    QSize sizeTemp = viewport()->size(); testWidget->resize(sizeTemp);
  • The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
    14k Topics
    62k Posts
    V

    @jsulm ,

    Got it,
    I will check it first
    Very Appreciate your help

  • Looking for The Bling Thing(tm)? Post here!
    20k Topics
    76k Posts
    T

    Hello everybody,

    I'm overlucky: I found the error for myself (-:

    The correct code line is now:

    emit dataChanged(index(0),index(nparticles-1));

    instead of

    emit dataChanged(index(0),index(nparticles));

    Now I can start working!

    Thanks to all!

    Tobias

  • Have a question about Qt Creator, our cross-platform IDE, or any of the other tools? Ask here!
    7k Topics
    34k Posts
    cristian-adamC

    Just add --verbose to the CMake build step. See below for details:

    qtcreator-makefiles-verbose.png

  • Your Qt just doesn't want to build? Your compiler can't find the libs? Here's where you find comfort and understanding. And help.
    10k Topics
    50k Posts
    jsulmJ

    @fulltopic See https://doc.qt.io/qt-5/macos.html#architectures
    Qt 5.15 is available as binary for Mac arm64 (via official installer). Just install XCode and Qt and you can build for Apple Silicon.

  • What can we say - we like games. And you can use Qt to write some. Questions? Ask here.
    842 Topics
    4k Posts
    johngodJ

    Hi all
    I just want to share a GameController that I am working on for QtQuick3D.
    It controls a target Node with the Keyboard or with the touch screen, with virtual not visible wheelpad.
    It can work like a FPS game camera, the camera has a nice drift effect when moving and rotating the target Node.
    See it in action here https://www.youtube.com/watch?v=i3HdaLy1zRc
    and here is a code example https://bitbucket.org/joaodeusmorgado/gamecontroller/src/main/

    The api is very easy to use, you just have to set the View3D camera with the GameController camera and set the GameController target with the Node you want to controll. See the api following example:

    View3D { id: view anchors.fill: parent camera: control.camera Node { id: originNode NodeCustomGeometry { id: nodeTarget } }//originNode }//View3D GameController { id: control target: nodeTarget fpsCamera: true // if the camera should act like a fps } }

    I am trying to contribute this GameController to the Qt project, see here
    https://bugreports.qt.io/browse/QTBUG-130603 and here
    https://codereview.qt-project.org/c/qt/qtquick3d/+/602679/2

    Feel free to send feedback and sugestions, or vote for it in the qt bug tracker, if you think this is a good project.
    Thanks and enjoy.

  • Questions about Qt WebKit and related topics? Post here!
    2k Topics
    6k Posts
    SGaistS

    Hi and welcome to devnet,

    Are you thinking about the WASM platform ?

  • Discussions and questions on QtWebEngine
    1k Topics
    4k Posts
    SGaistS

    In that case, use a universal build and target both architectures.

  • You're using Qt with other languages than C++, eh? Post here!
    853 Topics
    3k Posts
    T

    @jsulm It's an empty line:
    Screenshot 2024-11-12 130412.png

  • Combining Qt with 3rd party libraries or components? Ask here!
    1k Topics
    5k Posts
    Q

    Same issue, I have also got this cmake warning:

    -- qmlplugindump failed for org.kde.quickcharts. -- Could NOT find org.kde.quickcharts-QMLModule (missing: org.kde.quickcharts-QMLModule_FOUND) The qml plugin 'QuickChartsplugin' is a dependency of 'project', but the link target it defines (KF6::QuickChartsplugin) does not exist in the current scope. The plugin will not be linked.
  • For discussion and questions about Qt for Python (PySide 2)

    3k Topics
    14k Posts
    K

    Hello all. I am trying to reimplement the setRotation and setScale methods of my qgraphicsitem with a QTransform.

    So far, I have this:

    def setRotation(self, angle): self._rotation = angle self.updateTransform() def setScale(self, scale): self._scale = scale self.updateTransform() def rotation(self): return self._rotation def scale(self): return self._scale def updateTransform(self): # Compute the custom transformation transform = self.transform() transform.translate(self.boundingRect().center().x(), self.boundingRect().center().y()) transform.rotate(self._rotation) transform.scale(self._scale, self._scale) transform.translate(-self.boundingRect().center().x(), -self.boundingRect().center().y()) self.setTransform(transform)

    The major issue is how the transforms stack on top of each other, causing the problem where trying to reset the rotation/scale to 0 doesn't change anything. This means if I rotate the item to 45 and try to then rotate it back to 0, nothing happens because the item transform is already at 0 for rotation.

    Any help is greatly appreciated.

  • Specific issues when using Qt for WebAssembly

    431 Topics
    2k Posts
    Quang PhuQ

    Hello,
    I use Qt 6.8.0, with qml I use Multimedia to play audio

    MediaPlayer {
    autoPlay: true
    loops: MediaPlayer.Infinite
    source: "*.mp3" // url from internet
    audioOutput: AudioOutput {
    volume: moduleController.infoController.musicVolume / 100
    }
    }

    It works perfect on desktop but not in WebAssembly
    So are there any ways to play audio on WebAssembly or I must way for incoming versions of Qt (Current 6.8.0 is latest)

  • Discussions and questions about Qt Quick Ultralite and using Qt on microcontrollers in general

    128 Topics
    417 Posts
    P

    Hello,

    I'm migrating my Qt application from Qt5.12 to Qt5.15.

    Background:
    I have two qml files: screen1.qml and Object1.qml. screen1.qml is created based on user configurations in our PC application and is downloaded from PC to the embedded device.
    We are creating "Object1" from screen1.qml. A new item is added in a ListModel defined in screen1.qml based on user configuration and this new item is then appended to another listmodel in Object1.qml.

    screen1.qml:

    Rectangle { id: screen0001 Object1 { objectName : "obj00" x : 330 y : 64 width : 180 height : 384 lmindex : [page11] ListModel { id : page11 property string pageheading : "Menu" property bool enablereg : false property int enableregIndx : 0 property int menustrindex : 1 Component.onCompleted: { append({ promptText : "opt1", nextpage : page11, allowesc : 0, timeBase : 0, jmpscrnoffset : false, nxtscreen : -1 }) } } } }

    Object1.qml:

    Rectangle { id: rootrect property var lmindex: [page1] property var currentlm: lmindex[0] ListModel { id:menuLM } onCurrentlmChanged: { menuLM.clear() updtTimer.start() } Timer { id: updtTimer interval: 1; running: false; repeat: true triggeredOnStart: false onTriggered: { if(currentlm.get(menuLM.count)) { menuLM.append(currentlm.get(menuLM.count)); } } } }

    This code is working fine without any issues in qt5.12. But when I try this code in qt5.15, qt application is crashing while appending to the ListModel(). (Line of code - "menuLM.append(currentlm.get(menuLM.count))" in Object1.qml).

    But If a add a dummy item while defining the ListModel menuLM like below, I don't see the crash:

    ListModel { id:menuLM Component.onCompleted: { append ({ promptText : "---", nextpage : dummyList, allowesc : 0, timeBase : 0, jmpscrnoffset : false, nxtscreen : -1 }) } }

    I'm not able to find out the reason for this crash seen only in qt5.15.

    Questions:

    Please help me to know what is the reason for this crash in qt5.15. Are there any differences in ListModel between Qt5.12 and Qt5.15? (I could not see any changes related to Listmodel when I referred the release notes of Qt5.15.) It looks like in qt5.15, ListModel menuLM is not allocated any memory if there is no item in it while defining maybe to optimise it. This might be causing the crash when i try to append an item to it. But i don't have any confirmation for this. Please let me know if this is the reason. Please let me know if there is any alternate solution for this.

    Thank you,

    Best Regards,
    Pavankumar S V

  • The forum for discussing the Qt Digital Advertising Platform

    16 Topics
    40 Posts
    E

    @nayka Can I use QtDigitalAdvertising on PC applications? Or is it only allowed for use on Android or iOS mobile devices?

  • For discussion and questions about Qt Insight

    9 Topics
    12 Posts
    vicnguyenV

    Qt Insight 1.9 has been released. Qt Insight has new additions to the funnels and filters, allowing you to make deeper discoveries about your application usage. Two different funnel analytics, finer-grained geographic filtering options for regions, and many smaller improvements and bug fixes will enhance your insight.

    Read more details in the 1.9 release blog post.

  • Forum general guide

    Pinned
    22
    13 Votes
    22 Posts
    16k Views
    kshegunovK

    @Nils-A said in Forum general guide:

    @AnneRanch seriously? That's five years ago, four years before you joined.

    Nor is it relevant to your question.

    @AnneRanch said in Forum general guide:

    This in not the place to make sermons or trying to push your social opinions.
    Here is a "how to " borrowed form another site

    This isn't "another site", this site has a code of conduct, which's been established, reviewed and approved by a number of people and it certainly isn't under debate in this thread. If you have a specific complaint about a specific person/post bring it to the attention of the moderators directly by flagging it/them.