Skip to content

Qt 6

This is where all Qt 6 related questions belong

816 Topics 3.9k Posts
QtWS25 Call for Papers
  • how can I deploy my own static library?

    Solved
    7
    0 Votes
    7 Posts
    255 Views
    W

    @SimonSchroeder

    This is a good idea.
    I will try it.
    Thanks.
    Have a nice day.

  • Missing shared objects while using system Qt

    Unsolved
    8
    0 Votes
    8 Posts
    221 Views
    jsulmJ

    @Ash-V What is your Linux distribution?

  • How can I connect my QT cmake project to LibXL

    Unsolved
    9
    0 Votes
    9 Posts
    342 Views
    Christian EhrlicherC

    @Mihil-Ranasinghe said in How can I connect my QT cmake project to LibXL:

    was using QXlsx library it was shown in project tree.

    You did not - you just added the sources to your project instead linking to an external library - these are two completely different things.

  • Can't find QT6 inserts to satisfy Wayland

    Unsolved
    4
    0 Votes
    4 Posts
    340 Views
    SGaistS

    Start the application with the QT_DEBUG_PLUGINS environment variable set to 1 to see why it fails to load.

  • 0 Votes
    2 Posts
    270 Views
    M

    Delete the qbs build directory in your project after exiting QtCreator and build it again

  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    10 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • 0 Votes
    4 Posts
    152 Views
    Axel SpoerlA

    When you post code, please use the code formatting tags. It makes reading much easier for those who help you.
    I have never bumped into an error like that. Probably there is something wrong in how this QAIM is instantiated and d is either stale or nullptr.

  • 0 Votes
    8 Posts
    349 Views
    T

    Have you solved this problem yet? I'm having the same problem trying QT6!

  • 0 Votes
    6 Posts
    248 Views
    P

    @jsulm I understand now,thank you

  • This topic is deleted!

    Unsolved
    12
    0 Votes
    12 Posts
    79 Views
  • Qcache a buggy class?

    Unsolved
    9
    0 Votes
    9 Posts
    364 Views
    kshegunovK

    @FeRDNYC said in Qcache a buggy class?:

    ...Or I suppose the docs could have a general explainer page about object ownership and lifetimes, which statements like the one quoted above are linked to. Devs moving from garbage-collected languages, in particular, don't necessarily have that background.

    Qt is a library, and as @Christian-Ehrlicher mentioned, it's not any library's concern to teach you the underlying language - it is assumed that you're going to be using the library after you understand the basis of its existence.

    I can see how if you are coming from a garbage-collected language this may sound unfair, but if you think about it for a while I think you'd agree that C++ is too large and too complex for you to require from Qt (developers) to feed you information about the language too.

    Note: I'm liberally using "you", but do consider it as using the indefinite pronoun form.

  • Qt for ios save file error? why?

    Unsolved
    5
    0 Votes
    5 Posts
    354 Views
    K

    @jsulm Hello, I found that I need to use oc and qt for mixed compilation, but I can't add the Foundation framework in cmake. How should I add it?

    I checked the information and he said that iOS can only read and write at the location "QStandardPaths::standardLocations(QStandardPaths::DocumentsLocation).last()"

  • Qt 3d example error

    Unsolved
    15
    0 Votes
    15 Posts
    584 Views
    R

    @jsulm ok thank you for the help. Indeed grateful.

  • Qt Creator build error on Windows

    Unsolved
    13
    0 Votes
    13 Posts
    683 Views
    Ash VA

    @cristian-adam
    Thanks Cristian!
    I'll check this out.... ✌️

  • Not able to override delegate model, index

    Unsolved
    5
    0 Votes
    5 Posts
    243 Views
    Axel SpoerlA

    @Ash-V
    Hi,
    index is set to -5, model is set to {}, which means it's an empty, default constructed model.
    Regardless if overridden or not, modelneither has a name, nor a typeproperty.
    So I don't quite see the problem here.
    Which value would you expect the properties to have?

  • QMediaPlayer doesn't play sound 6.6.3

    Unsolved
    5
    0 Votes
    5 Posts
    301 Views
    JonBJ

    @Dilabun
    I had not looked closely at your code, but what @Ketan__Patel__0011 has written is certainly correct. If that is really the code you have been trying you have created two quite separate QAudioOutputs. The one in audioOutput whose volume you set is not the one which is player's output. So start by sorting that out!

  • 0 Votes
    5 Posts
    308 Views
    JoeCFDJ

    @marisol Looks like gradle version mismatch. Read the links in my post above carefully and try to use the right versions for all packages.

  • qt5.15.2 + vs 2022 static build error,please help me

    Unsolved
    2
    0 Votes
    2 Posts
    460 Views
    Z

    You can try to install new version of Strawberry Perl. Perl is used to generate qmimeprovider_database.cpp as indicated by file "qtbase\src\corelib\mimetypes\mimetypes.pri".

    mimedb.depends = $$PWD/mime/generate.pl equals(MAKEFILE_GENERATOR, MSVC.NET)|equals(MAKEFILE_GENERATOR, MSBUILD)|isEmpty(QMAKE_SH) { mimedb.commands = cmd /c $$shell_path($$PWD/mime/generate.bat) mimedb.depends += $$PWD/mime/generate.bat $$PWD/mime/hexdump.ps1 } else { mimedb.commands = perl $${mimedb.depends} }

    Refer to https://www.qtcentre.org/threads/71253-Static-Build-Issue-on-QT-5-15-0?p=309507#post309507

    Then, if "qmimeprovider_database.cpp" is generated correctly, the compilation works.

  • qtpropertybrowser with Qt6

    Unsolved
    5
    0 Votes
    5 Posts
    920 Views
    FeRDNYCF

    @Dragoner said in qtpropertybrowser with Qt6:

    -Wa,-mbig-obj

    (This is ONE compiler flag, so the comma is not a typo!)

    Correct. Specifically, it says that the compiler should pass the comma-separated list of arguments that follows (-mbig-obj) to the assembler (-Wa), when it gets run.

    There are also -Wp, flags, to pass arguments to the preprocessor stage, and -Wl, flags, when an option needs to go to the linker.

    In gcc , at least, the -Xassembler, -Xpreprocessor, and -Xlinker flags can be used to do the same thing one argument at a time, without comma-separating them.

    (e.g. these are equivalent:)

    $ gcc -Xassembler -mbig-obj ... $ gcc -Wa,-mbig-obj ...