Skip to content

Qt 6

This is where all Qt 6 related questions belong

827 Topics 4.0k Posts

QtWS: Super Early Bird Tickets Available!

  • 0 Votes
    2 Posts
    355 Views
    jsulmJ

    @Persivan said in QMYSQL driver not found after release:

    Any ideas?

    Yes, use search function in this forum - this is asked so often.
    Most probably the MySQL driver lib is missing.

  • 0 Votes
    10 Posts
    3k Views
    L

    Using Qt 5.15.0 MSVC2019 64bit solved the problem, so as I was using seqAn2 libs, that couldn't worked with Qt6 and also because of some windows libs....

  • Error while compiling Qt app in Microsoft Visual Studio

    Solved
    2
    0 Votes
    2 Posts
    240 Views
    R

    Based on a Youtube comment this is the solution:
    1- Right click on the project name and select properties.
    2- Configuration properties -> General.
    3- Change the "C++ Language standard" to "ISO C++17 standard".

  • Error running windeployQT

    Solved
    9
    0 Votes
    9 Posts
    2k Views
    KH-219DesignK

    Just a note for anyone running into this issue who happens to not need translations, the error can be bypassed by running windeployqt with the --no-translations option.

  • Qt6 Porting guidance: construct QVideoFrame from QImage

    Solved
    2
    1 Votes
    2 Posts
    215 Views
    D

    the correct answer is posted above, but a question remains: is this the most efficient method?

  • 0 Votes
    3 Posts
    306 Views
    Z

    OK I just checked the directories and files output by the code:

    QDirIterator it(":", QDirIterator::Subdirectories); while (it.hasNext()) { qDebug() << it.next(); }

    and the file is stored as absolute path.

    I changed the related CMake code to

    qt6_add_resources(TP_ui "image" PREFIX "/image" BASE "${PROJECT_SOURCE_DIR}/image" FILES ${TP_IMAGE_FILES} )

    and solved the problem.

  • guidance for porting QAbstractVideoSurface ?

    Unsolved
    2
    0 Votes
    2 Posts
    201 Views
    SGaistS

    Hi,

    I think your are going to need QVideoSink.

    However, I don't know how to get from your custom surface to it.

    The API is being reviewed so you should check the interest mailing list and bring your porting question there.

  • libQt6Charts.so: No such file or directory

    Unsolved
    4
    0 Votes
    4 Posts
    385 Views
    sierdzioS

    Qt Creator does not run make install, you should probably do that manually. Hard to say exactly, looks like it's partially installed (normally it would have failed much sooner - when running qmake or cmake).

  • 0 Votes
    4 Posts
    1k Views
    SGaistS

    Hi,

    Legitimate assumption, the new API is currently under review if memory serves well.

  • How to push Qt6 example to repository

    Solved
    6
    0 Votes
    6 Posts
    322 Views
    VRoninV

    You should also edit charts.pro, examples.pro and the 2 CMakeLists.txt to include your project.
    All other contribution guidelines still apply

  • Error during building Qt6 + MSVC2019

    Unsolved
    2
    0 Votes
    2 Posts
    444 Views
    SGaistS

    Hi,

    As a workaround you can either uncomment the parameter name or just remove it.

  • Compile #error Add the datastream version for...

    Unsolved
    1
    0 Votes
    1 Posts
    322 Views
    No one has replied
  • Error during building Qt6 from Git.

    Solved
    10
    0 Votes
    10 Posts
    560 Views
    C

    Thanks everyone who tried to help me. The thing is I didn't need dev branch content. It was enought for me to be updated with 6.2. After switching to it, everything has successfully built.
    I guess, the problem was that there're some code on dev branch which doesn't pass tests.

  • Issue with QtCharts in Qt6.1.1

    Solved
    19
    0 Votes
    19 Posts
    3k Views
    R

    @SGaist Done. Thanks for you help!

  • qt6 and cmake equivalent of qt5 and qmake

    Solved
    3
    0 Votes
    3 Posts
    600 Views
    posktomtenP

    Thanks so much!
    I have downloaded your example and started exploring how it works. I made it work by starting from a "CMakeLists.txt" created by Qt Creator. It seems to work. But I need to learn cmake, so I thank you for your example. After 30 years of programming with qmake, it takes some time to learn new things.

    Create a *.so or a *.dll file Qt5 else() # add_executable(myProgram # Changed to add_library(myLib SHARED ${PROJECT_SOURCES} ) Qt6 if(${QT_VERSION_MAJOR} GREATER_EQUAL 6) # qt_add_executable(myProgram # Changed to add_library(myLib SHARED MANUAL_FINALIZATION ${PROJECT_SOURCES} Use the library file (Only tested with Qt6 and Windows) target_link_libraries (myTestProgram PRIVATE $ {PROJECT_SOURCE_DIR} /lib/myLib.dll) Or include the library file in a project that uses qmake win32:CONFIG(release, debug|release): LIBS += -L../lib/ -ldownloadunpack # Release else:win32:CONFIG(debug, debug|release): LIBS += -L../lib/ -ldownloadunpackd # Debug unix:LIBS += -ldownloadunpack
  • QT6.1 everywhere static compile

    Unsolved
    3
    0 Votes
    3 Posts
    195 Views
    Sam1990S

    thanks a lot

  • How to use QOpenGLFunctions with QtQuick in Qt 6?

    Unsolved
    1
    0 Votes
    1 Posts
    120 Views
    No one has replied
  • Qt6.1 - Qt Quick emulation layer crashed

    Unsolved
    1
    0 Votes
    1 Posts
    154 Views
    No one has replied
  • Qt3D build in Qt6

    Unsolved
    4
    0 Votes
    4 Posts
    856 Views
    jiapei1000J

    @surajj4837 Hey, can you please provide your solution to this issue? Thank you ...

  • build Qt6.1 from source for raspberry pi 4

    Unsolved
    2
    0 Votes
    2 Posts
    199 Views
    Pablo J. RoginaP

    @polto-molto do you plan to cross-compile or just build in the device?