Skip to content

Qt 6

This is where all Qt 6 related questions belong

828 Topics 4.0k Posts
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • determing graphics frame swap time when rendering in Qt 6

    Moved Unsolved
    12
    1 Votes
    12 Posts
    2k Views
    B

    Stepping back from the specifics of the application, the general question is: How to render a smooth animation representing the value of a continuously changing variable (the position in the audio track) that can move in either direction at any time at any velocity and acceleration? Perhaps we need a PID controller?

  • Qt6: Build error with Visual Studio 2019 and QtQuick3D

    Unsolved
    5
    1 Votes
    5 Posts
    1k Views
    Cobra91151C

    I have fixed this issue by changing small to little variable name in every occurrence in the method below.

    Code - ComputeUVMappingProcess.cpp:

    // Try to remove UV seams void RemoveUVSeams (aiMesh* mesh, aiVector3D* out) { // TODO: just a very rough algorithm. I think it could be done // much easier, but I don't know how and am currently too tired to // to think about a better solution. const static ai_real LOWER_LIMIT = ai_real( 0.1 ); const static ai_real UPPER_LIMIT = ai_real( 0.9 ); const static ai_real LOWER_EPSILON = ai_real( 10e-3 ); const static ai_real UPPER_EPSILON = ai_real( 1.0-10e-3 ); for (unsigned int fidx = 0; fidx < mesh->mNumFaces;++fidx) { const aiFace& face = mesh->mFaces[fidx]; if (face.mNumIndices < 3) continue; // triangles and polygons only, please unsigned int little = face.mNumIndices, large = little; bool zero = false, one = false, round_to_zero = false; // Check whether this face lies on a UV seam. We can just guess, // but the assumption that a face with at least one very little // on the one side and one very large U coord on the other side // lies on a UV seam should work for most cases. for (unsigned int n = 0; n < face.mNumIndices;++n) { if (out[face.mIndices[n]].x < LOWER_LIMIT) { little = n; // If we have a U value very close to 0 we can't // round the others to 0, too. if (out[face.mIndices[n]].x <= LOWER_EPSILON) zero = true; else round_to_zero = true; } if (out[face.mIndices[n]].x > UPPER_LIMIT) { large = n; // If we have a U value very close to 1 we can't // round the others to 1, too. if (out[face.mIndices[n]].x >= UPPER_EPSILON) one = true; } } if (little != face.mNumIndices && large != face.mNumIndices) { for (unsigned int n = 0; n < face.mNumIndices;++n) { // If the u value is over the upper limit and no other u // value of that face is 0, round it to 0 if (out[face.mIndices[n]].x > UPPER_LIMIT && !zero) out[face.mIndices[n]].x = 0.0; // If the u value is below the lower limit and no other u // value of that face is 1, round it to 1 else if (out[face.mIndices[n]].x < LOWER_LIMIT && !one) out[face.mIndices[n]].x = 1.0; // The face contains both 0 and 1 as UV coords. This can occur // for faces which have an edge that lies directly on the seam. // Due to numerical inaccuracies one U coord becomes 0, the // other 1. But we do still have a third UV coord to determine // to which side we must round to. else if (one && zero) { if (round_to_zero && out[face.mIndices[n]].x >= UPPER_EPSILON) out[face.mIndices[n]].x = 0.0; else if (!round_to_zero && out[face.mIndices[n]].x <= LOWER_EPSILON) out[face.mIndices[n]].x = 1.0; } } } } }

    Now, it successfully compiles Qt 6.0.1 statically.

  • Conflict between Homebrew policy and and Qt6

    Unsolved
    2
    0 Votes
    2 Posts
    246 Views
    Christian EhrlicherC

    This is a user-driven forum. For bug reports either ask at the mailing list or create a bug report.

  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • in qt6 QJSValue call not work properly

    Unsolved
    1
    0 Votes
    1 Posts
    251 Views
    No one has replied
  • 1 Votes
    10 Posts
    9k Views
    jsulmJ

    @AnneRanch
    #1 - this is normal on Linux and has to do with security (you usually really don't want downloaded files to be executable out of the box). A software developer should know how to make a file executable.
    #2 - QtCreator is installed by default when using the online installer provided by Qt Company
    #3 - It is an installer downloading most data from the Internet (including QtCreator). If you want an installer which includes everything then use offline installer (but keep in mind - it is big).

  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • 0 Votes
    11 Posts
    1k Views
    K

    An error occurred.But other pc Start Over!
    Windows10 VisualStudio2019 x64 Qt6.0.0

    (mega 2.62GB)
    https://mega.nz/file/tqQ0RJBT#HGZRV0B_k9Ekrf952vJ2-we6LK2nnfUCftSHmoO2syg

    command(admin)
    c:\qt6\src>cmake --install c:\qt6\src

  • Qt 6: Can't get GTK to work on Linux Mint

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    DriftwoodD

    @JKSH - I found this:

    gtkThemes.png

    But it isn't working. And I see no way to turn it on. Everything I create with Qt on Linux comes away with the standard "Qt theme".

    gtkTheme-01.png

    On the left, we have Qt. On the right, Code::Blocks. I'm not making a comparison here, because I know Code::Blocks uses wxWidgets, and they adapt instantly to any theme. But I am trying to point out that I just created both of these on my Linux box. C::B holds true to my theme while Qt doesn't. I'm just trying to make Qt roll with my theme. And I know it can, because I use some Qt software on Linux that uses any theme I set. I just don't know how to get my Qt stuff to behave in kind. Any help in this matter would be greatly appreciated.

  • 0 Votes
    1 Posts
    273 Views
    No one has replied
  • Installation Qt6 on windows

    Unsolved
    7
    0 Votes
    7 Posts
    3k Views
    M

    @ronron
    Could you try the link www.qt.io/download-qt-installer for the online installer? That would automatically detect your operating system. In your case, Windows 10 platform. It could help to see that you are downloading the right version, 64-bits.

  • 0 Votes
    4 Posts
    921 Views
    alomA

    Ah great to see that its planed for 6.2
    Thanks guys

  • CMake error with msvc in CLion

    Solved
    11
    0 Votes
    11 Posts
    6k Views
    R

    @zhangyiant Thank you very much, I had such a problem too, it worked for me too.

  • Building Qt3D 6.0.0

    Unsolved
    8
    2 Votes
    8 Posts
    1k Views
    J

    thanks for trying to shed some light on this.

    As I said, I have already installed the vulkan SDK (the "official" one from LunarG as I am trying to build for windows). I have even added the include directory directly in the *.pro file, and have observed that when opening the qt3d project with QtCreator, it can correctly resolve the vulkan libraries, so I think this is not the problem. I will try your suggestion of putting the vulkan headers directly in the qt directory and see if that gets me anywhere..

  • 0 Votes
    2 Posts
    354 Views
    kkoehneK

    Can you maybe attach C:\Qt\Tools\QtCreator\share\qtcreator\QtProject\qtcreator\profiles.xml? This is the place where all auto-detected kits are stored...

  • TIFF file problems in qt6

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    leuatL

    FYI the problem was resolved after manually compiling up the imageformats package + adding it to the build dir. For future references: please make sure that if you try to load an image file that is currently not supported, then provide some sort of feedback to the user (developer)!

  • sending message to the client using Qt

    Unsolved
    16
    0 Votes
    16 Posts
    2k Views
    F

    @JonB I have done this but now When I emit a signal sendmessage() from mainwindow class (sendmessage() signal is working perfectly fine) to the slot of thread class so the thread class does not emit the gotnewmessage() signal when I want to send the data to mainwindow class that it needs to show in text box. Do you hav any idea why is that happening?

  • Serial port for Qt 6

    Solved
    7
    0 Votes
    7 Posts
    7k Views
    P

    @SGaist Thank you very much, that saved me a lot of disk space!

  • Can't get the debugger to work on Qt6 + Apple M1 (arm).

    Unsolved
    3
    0 Votes
    3 Posts
    874 Views
    leuatL

    also, I should note that lldb works just fine, not showing source code was simply me running the program from an incorrect path. I guess lldb is the way to go until you guys release a fully operational kit for ARM...