Skip to content

Qt 6

This is where all Qt 6 related questions belong

842 Topics 4.1k Posts
  • 0 Votes
    3 Posts
    388 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
    233 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
    473 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
    381 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
    512 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
    350 Views
    No one has replied
  • Error during building Qt6 from Git.

    Solved
    10
    0 Votes
    10 Posts
    785 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
    723 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
    237 Views
    Sam1990S

    thanks a lot

  • How to use QOpenGLFunctions with QtQuick in Qt 6?

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

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

    Unsolved
    4
    0 Votes
    4 Posts
    982 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
    249 Views
    Pablo J. RoginaP

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

  • Writing data to file using QMap

    Unsolved
    7
    0 Votes
    7 Posts
    546 Views
    JonBJ

    @Beginner_to_code
    Like @jsulm I don't know what it is you want to do or what the problem is. But I note you wrote

    now i have to write same data to a csv file without client socket using Qmap

    What I don't get is: QMap is a data structure. It has nothing to do with "client socket". You either need a socket or you don't. What connection/link is there between your use of QMap and your use, or not, of "client socket"?

  • 1 Votes
    7 Posts
    1k Views
    Chris KawaC

    @Gertio said in How to change Qt6 Windows appliaction defaulting to UNICODE?:

    So you think I should use WaitNamedPipeA() then?

    Yes

    But I came here because I thought that you can affect UNICODE definition in the first place, because as I said, Qt5 does not define it, only Qt6 and only if building GUI application (not console application).

    This change seems to be on purpose: QTBUG-89951. According to the patch description you can disable UNICODE definition by using qt6_disable_unicode_defines in CMake.

  • How to print data on textbrowser in other class?

    Solved
    3
    0 Votes
    3 Posts
    230 Views
    G

    Solved

    Add:
    mainwindow.h

    signals: void updatevistapersone();

    persone.h

    public slots: void onupdatevistapersone();

    mainwindow.cpp
    Inside costructor

    connect(ui->pushButton_registra, SIGNAL(returPressed), this, SIGNAL(on_pushButton_registra_clicked()));

    Inside button

    emit this->updatevistapersone();

    persone.cpp

    void Persone::onupdatevistapersone() { //to do }

    main.cpp

    QObject::connect(&w, SIGNAL(updatevistapersone()), &p, SLOT(onupdatevistapersone()));
  • How to install qt6 on centos 8 using tar.gz file

    Unsolved
    2
    0 Votes
    2 Posts
    482 Views
    SGaistS

    Hi and welcome to devnet,

    For the offline installer, you need a commercial license.

    Otherwise there's the online installer.

    Since you are mentioning sources, you can simply download them.

  • why QGraphicsItemAnimation is deprecated in Qt6?

    Solved
    2
    0 Votes
    2 Posts
    244 Views
    nageshN

    answered here
    Use QPropertyAnimation