Skip to content

Qt 6

This is where all Qt 6 related questions belong

816 Topics 3.9k Posts
QtWS25 Call for Papers
  • Cross compiling Qt6 for raspberry pi with eglfs option

    Unsolved
    1
    0 Votes
    1 Posts
    272 Views
    No one has replied
  • Is there an UI issue with Mac apps upgraded to Qt6?

    Unsolved
    2
    0 Votes
    2 Posts
    127 Views
    SGaistS

    Hi and welcome to devnet,

    That is a question that cannot be easily answered as this is a pretty big project.

    If you want to help answer it, the best would be to at least prepare a simple set of instructions for people to get that application up and running. As well as check where the menu is created and pinpoint that part, etc.

  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    11 Views
    No one has replied
  • Custom Widget cannot be added to Qt Designer

    Unsolved
    2
    0 Votes
    2 Posts
    131 Views
    SGaistS

    Hi,

    Start the application from the command line with the QT_DEBUG_PLUGINS environment variable set to 1 to see what is happening with the plugins.

    One thing that you can also check: are you using the same Qt version that was used to build Qt Creator ?

  • Undefined reference to constructor

    Unsolved
    13
    0 Votes
    13 Posts
    923 Views
    JonBJ

    @ofmrew said in Undefined reference to constructor:

    I checked the values at the break point and the looked OK.

    No idea what this means, but never mind.

    The question is how do I solve the free function problem?

    Define them as member functions. If you do not understand the difference between class member functions and free functions you need to understand that from a C++ book/tutorial, else you won't get far in C++.

  • 0 Votes
    4 Posts
    304 Views
    ?

    Great, thank you! Here's the link to the documentation for anyone who is curious.

  • QSplitter in QT DEsigner does not work

    Unsolved
    2
    0 Votes
    2 Posts
    159 Views
    SGaistS

    Hi,

    Can you provide a minimal compilable example that shows this behaviour ?

  • 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
    319 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
    245 Views
    A

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

  • setColumnHidden does not work

    Unsolved
    5
    0 Votes
    5 Posts
    311 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
    642 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
    167 Views
    T

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

  • 0 Votes
    1 Posts
    331 Views
    No one has replied
  • 0 Votes
    1 Posts
    362 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
    252 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
    299 Views
    No one has replied
  • Keyboard always appears when QPushButton is clicked

    Solved
    2
    0 Votes
    2 Posts
    131 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
    468 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