Skip to content

Qt 6

This is where all Qt 6 related questions belong

816 Topics 3.9k Posts
QtWS25 Call for Papers
  • Geometry of primary screen is incorrect

    Solved
    2
    0 Votes
    2 Posts
    351 Views
    T

    This is now marked as a bug:
    https://bugreports.qt.io/browse/QTBUG-103558

  • 0 Votes
    34 Posts
    2k Views
    A

    Hello again guys, I hope you're all doing well.

    So I tried what you all suggested and it finally worked.
    Thank you so much for your precious time, advices and patience.

  • using QVector3D in QML module in Qt6.3

    Unsolved
    1
    0 Votes
    1 Posts
    94 Views
    No one has replied
  • Workaround for using SSL 3 in Qt 6.3

    Unsolved
    7
    1 Votes
    7 Posts
    2k Views
    M

    @Christian-Ehrlicher any installer checks and verify the requisites before install anything.

  • Is there an alternative to QWinTaskbarButton in Qt 6?

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    oblivioncthO

    Bit of a grave dig and shameless plug, but in case anyone else stumbles upon this, while we wait for Qt6 to add the planned cross platform version of the old QWinTaskbarButton, I have effectively re-implemented the class in a small library:

    https://github.com/oblivioncth/Qx

    The API is mostly the same as the original, though with minor differences. Primarily, the interface for manipulating the progress indicator was moved into the main button class instead of being a separate one.

    See specifically: https://oblivioncth.github.io/Qx/class_qx_1_1_taskbar_button.html

  • 0 Votes
    3 Posts
    610 Views
    Chris KawaC

    Note the 4 in your lib's names. You'll need to migrate them first so QtGui4.lib -> Qt6Gui.lib and so on.
    qtmain.lib is now called Qt6EntryPoint.lib

    QtWebkit, as Christian mentioned, is no longer part of Qt and was replaced by QtWebEngine.

  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    29 Views
    No one has replied
  • QFileInfo in Qt6.3 MinGW broken?

    Solved
    4
    0 Votes
    4 Posts
    314 Views
    VRoninV

    I knew it was something silly, thanks!

  • Qt6 CMake for QML

    Unsolved
    1
    0 Votes
    1 Posts
    238 Views
    No one has replied
  • 0 Votes
    19 Posts
    1k Views
    C

    DEPENDENCIES is only relevant for resolving dependencies between QML modules at runtime, or for tools like qmllint.
    It does not affect linking relationships at all.

    I suggest you push your current project state to some repository (like github) and share it and the errors you get, because it's not entirely clear what fails at the moment.

    For example in your post at https://forum.qt.io/post/711286 you link Qt6::Multimedia into appSynth rather than Synth.

    To ensure Multimedia symbols are found, you need to link Qt6::Multimedia into the target whose sources uses multimedia symbols.

    Within qt_add_qml_module, you have to include all SOURCE classes/functions that are used.
    For example, if I made my Synthesizer class depend on another class, AudioMakers then the source (AudioMakers.h & AudioMakers.cpp) must be in the SOURCE list and omitting them gives the same errors.

    I'm not sure I understand this statement.
    All sources both (.cpp and .h) should indeed be specified as sources. either via qt_add_qml_module's SOURCES option or using target_sources.

  • QProgressBar attached to QGraphicsItem

    Solved
    3
    0 Votes
    3 Posts
    189 Views
    B

    @JonB Thanks. This QGraphicsProxyWidget is what i needed."

  • 0 Votes
    1 Posts
    108 Views
    No one has replied
  • [How to use a result of a function in another class]

    Solved
    18
    0 Votes
    18 Posts
    982 Views
    A

    Guys I'm really sorry, I should have called the copy function so that it can be executed.
    Now I get a QList full of values.

    Sorry again, a simple lack of attention made things go wrong.
    @jsulm @JonB @JonB Thank you for your precious time and patience

  • 0 Votes
    1 Posts
    184 Views
    No one has replied
  • 0 Votes
    5 Posts
    449 Views
    JonBJ

    @Christian-Ehrlicher said in Collisions with custom QGraphicsItem that inherits from QObject:

    @JonB But it will behave exactly as his class wrt to the pointers:

    Absolutely true! Hence I said

    Apart from the answer @Christian-Ehrlicher has given to the question you ask.

    This is just a suggestion for if OP does want equivalent for the class CustomRect : public QObject, public QGraphicsItem. Not that it will change any behaviour wrt to pointers question.

  • 0 Votes
    7 Posts
    1k Views
    S

    @JoeCFD the first post in this topic contains the code that's needed to replicate the issue. You'll need an X server without a window manager though; I have mentioned how I can get one on Windows but I'm not sure how exactly the setup can be replicated in Linux etc.

  • 0 Votes
    1 Posts
    413 Views
    No one has replied
  • QSerialBus included in QT6?

    Unsolved
    8
    0 Votes
    8 Posts
    398 Views
    JonBJ

    @LouieLoay
    That only tells you what your Qt Creator IDE version is, and what version of Qt it uses internally. You need to look at what version of Qt itself you are using for compiling/running your code, which may not be the same.

    Having said that, your Creator is a pretty old version (5.5/2015), so that might be indicative you also use an old-ish version of Qt. I do not know at which version of Qt support for ModBus/CANBUS was introduced. Whichever route you go, you are likely to want a newer version of Qt than 5.5.

  • Qt 6.3

    Unsolved
    4
    0 Votes
    4 Posts
    288 Views
    jsulmJ

    @satyanarayana143 And you do not have any other MinGW or MSYS installations on your machine?
    Try to add

    CONFIG += c++17

    to your pro file if you use QMake, else add

    set(CMAKE_CXX_STANDARD 17)

    to your CMakeLists.txt file.

  • [How to delete a QList]

    Solved
    15
    0 Votes
    15 Posts
    3k Views
    A

    Hello again,
    Thank you for all the precious information.