Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • How to use mouse events and signals together

    Solved
    6
    0 Votes
    6 Posts
    3k Views
    Christian EhrlicherC
    @IknowQT said in How to use mouse events and signals together: Are there any problems that may arise when implementing the function? The same as @jsulm already told you - you don't call the base class...
  • Bluetooth Low Energy example doesn't work

    Unsolved bluetooth low energy ble windows 10 qt 5.10.0
    19
    0 Votes
    19 Posts
    9k Views
    A
    @Ashi Sorry, I'm too late to answer this post. I think you should try with msvc compiler, not mingw
  • How to receive communication from Multi Client in TcpServer

    Solved
    4
    0 Votes
    4 Posts
    323 Views
    W
    @Pablo-J-Rogina OK, Thanks. I'll take that as a reference.
  • Adding ScrollArea to the flowLayout

    Unsolved
    3
    0 Votes
    3 Posts
    239 Views
    Swati777999S
    @jsulm said in Adding ScrollArea to the flowLayout: @Swati777999 Isn't this already discussed here: https://forum.qt.io/topic/132782/syntax-for-vector-of-qpushbuttons-added-to-flowlayout ? Yes, but since the above question has taken a different turn, so I thought of asking it from a different solution, different from my design.
  • setLayout to a widget Vs setting parent to the layout

    Solved
    4
    0 Votes
    4 Posts
    893 Views
    C
    @Swati777999 CASE-1 and CASE-2 are equivalent. Creating a QLayout with a specified QWidget parent automatically sets it as the QWidget's layout. In CASE-1 you have to set the layout on the parent widget manually because the layout is parentless. In CASE-2 the call to setLayout() is unnecessary because the layout constructor did it for you (it does no harm to call it again). @AnneRanch jsulm's response was simply asking if the OP had read the manual and pointing at the relevant bit. The information is in the manual and reasonably easy to find, but it is possible the OP read it and did not understand. As for a "code example"... the example is the original post.
  • How to pass String Value in decimal to QlineEdit?

    Unsolved
    33
    0 Votes
    33 Posts
    5k Views
    jsulmJ
    @Wasee said in How to pass String Value in decimal to QlineEdit?: Simply tell me how I can convert it into integer of following external value You already was told how and @J-Hilk even gave you code. If it does not work then please be so kind and analyse what happens. This is what a developer should do in such a situation. What does split.at(index1) or split.at(index2) return? Does it return a string containing a valid hex number?
  • CMake vs QMake. Which is better to use for new project?

    Solved
    11
    0 Votes
    11 Posts
    20k Views
    T
    @mrjj December 2021, Qt 6.2.2, Creator 6.0. Still copies file names to clipboard so you can add them manually to Cmake.
  • Qt Mac installer doesn't support vulkan

    Unsolved
    1
    0 Votes
    1 Posts
    161 Views
    No one has replied
  • 0 Votes
    2 Posts
    2k Views
    F
    On the Raspberry Pi, in the terminal before running my application, I had to run export QML2_IMPORT_PATH=/usr/local/qt5.15/qml and that fixed it. I put that line in my ~/.profile and it seems to have fixed it permanently. I no longer have to run the export command manually.
  • QtBluetooth is not recognized on Linux.

    Solved
    17
    0 Votes
    17 Posts
    1k Views
    Christian EhrlicherC
    @SGaist Thx for the clarification :)
  • How to clone/duplicate QTableWidget?

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    SGaistS
    Hi, How do you intend to do these changes ? From the looks of it, you should just share the model between the dialogs.
  • QMessageBox with Japanese characters gives "Missing font family" warning on macOS

    Solved
    8
    0 Votes
    8 Posts
    1k Views
    E
    @SGaist I don't see this in the bug report system, so I've reported it. https://bugreports.qt.io/browse/QTBUG-99216
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    292 Views
    No one has replied
  • Two libs, one lib adds functionality to the other if present?

    Solved
    3
    0 Votes
    3 Posts
    210 Views
    M
    Perfect, thanks. Doing the runtime plugin is more than I want to do at the current moment. Appreciate the answer.
  • How to Draw a circular progress Bar using QML in QT6

    Solved qt6 qml qml + js progress bar
    2
    0 Votes
    2 Posts
    1k Views
    Gojir4G
    Hi, it seems ConicalGradient has been removed from Qt 6. There is probably a new alternative for that. Anyway you can still accessing it using the Qt5Compat module. See details here: https://doc.qt.io/qt-6/qml-qt5compat-graphicaleffects-conicalgradient.html Note you'll probably need to install the Qt5Compat module corresponding to your Qt version from the Maintenance Tools if that's not already the case.
  • This topic is deleted!

    Solved
    10
    0 Votes
    10 Posts
    42 Views
  • how ogre3d engine integrate qlabel qbutton and qLabel ?

    Unsolved qt5.11 integrate
    1
    0 Votes
    1 Posts
    333 Views
    No one has replied
  • Meaning of eventFilter return value

    Solved
    2
    0 Votes
    2 Posts
    1k Views
    jsulmJ
    @IknowQT It's explained in the documentation: https://doc.qt.io/qt-5/qobject.html#installEventFilter "The eventFilter() function must return true if the event should be filtered, (i.e. stopped); otherwise it must return false." So, if you return true it means the event is droped and the object (on which you set the event filter) will not handle it.
  • How to change individual qvalue3Daxis label colors?

    Unsolved data visualizat datavisualizati q3dscatter
    1
    0 Votes
    1 Posts
    359 Views
    No one has replied
  • How to draw a static graph like structure using canvas in QML?

    Unsolved qt 5.7 qml canvas
    2
    0 Votes
    2 Posts
    723 Views
    sierdzioS
    You will get better performance (and more help from Qt docs) if you use QQuickPaintedItem and draw this in C++.