Skip to content

Qt 6

This is where all Qt 6 related questions belong

828 Topics 4.0k Posts

QtWS: Super Early Bird Tickets Available!

  • QtAndroid::requestPermissions() in Qt6

    Unsolved
    6
    1 Votes
    6 Posts
    1k Views
    D

    Thanks @JonB - I also just discovered the notes at https://www.qt.io/blog/qt-extras-modules-in-qt-6.

    Using Qt 6.3.0, I've enabled the private headers ( QT += core-private ) and with a slight re-write, the permission checks and requests seem to be working fine.

  • [Printing values of a QList of structure]

    Solved
    3
    0 Votes
    3 Posts
    345 Views
    A

    Thank you so much for your precious help.
    Very clear explanation.
    Also, It worked correctly.

  • [Populating a QList of structure]

    Solved
    3
    0 Votes
    3 Posts
    265 Views
    A

    @J-Hilk Thank you so much.
    It worked.

  • setColumnHidden does not work

    Unsolved
    5
    0 Votes
    5 Posts
    370 Views
    Christian EhrlicherC

    Why should a column with a width of 0 be shown?
    Also you should not set a column width of 0 by yourself - use hide/show functions instead.

  • Styling QTreeView indicator in Qt6

    Unsolved
    3
    0 Votes
    3 Posts
    682 Views
    D

    @Holt59 said in Styling QTreeView indicator in Qt6:

    QCheckBox::indicator:hover

    Same here with QListWidget..
    I create a ticket ! https://bugreports.qt.io/browse/QTBUG-103855

  • 0 Votes
    2 Posts
    176 Views
    T

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

  • 0 Votes
    1 Posts
    358 Views
    No one has replied
  • 0 Votes
    1 Posts
    380 Views
    No one has replied
  • CMake: QML module with external dependencies

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    P

    Having filed this as a bug here: https://bugreports.qt.io/browse/QTBUG-103594, @Croitor-Alexandru responded (to the bug) with some useful comments about structuring a project. As it's relevant, I've taken the liberty of copying a snippet here:

    We recommend placing each qt_add_qml_module call in its own $project_src_dir/CommonAnimals/CMakeLists.txt, and add that cmakelists.txt file with add_subdirectory(CommonAnimals). Then the built module is placed in $project_build_dir/CommonAnimals/qmldir and the default qml engine import path is able to find the qml module.

    To date I haven't encountered any issues with import in QML where all files are in the project source folder and organisation of them is handled in Qt Creator, which generates a virtual folder structure based on QML modules defined in CMake. However I'll file this advice away in case I need to change things in future.

  • 0 Votes
    2 Posts
    280 Views
    kshegunovK

    @Franz-Hirschbeck said in QSharedPointer<const QObject> results in compiler errors when used in metatyping (Q_DECLARE_METATYPE):

    Is there something wrong with my setup?

    Yes, but not syntax-wise.

    Am I the only one using QSharedPointer to const object with signal/slot?

    QSharedPointer doesn't really make any sense here, as you're reference counting (externally) an object, that is never supposed to be detached (copied). What should be the purpose of having a QSharedPointer instead of say const QObject *?

    Edit: Well, I'd missed that this is an old-ish topic when I replied

  • 0 Votes
    1 Posts
    311 Views
    No one has replied
  • Keyboard always appears when QPushButton is clicked

    Solved
    2
    0 Votes
    2 Posts
    149 Views
    A

    Should have informed about the focusPolicy:
    https://doc.qt.io/qt-5/qwidget.html#focusPolicy-prop

  • third party libs

    Solved
    11
    0 Votes
    11 Posts
    513 Views
    C

    @CharlesHuff
    oops...

    I noticed another line with target_link_libraries and moved the above two lines to just below that! now it links just fine. I am finally on the path....

    Charles

  • Geometry of primary screen is incorrect

    Solved
    2
    0 Votes
    2 Posts
    378 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
    118 Views
    No one has replied
  • Workaround for using SSL 3 in Qt 6.3

    Unsolved
    7
    1 Votes
    7 Posts
    3k 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
    690 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