Skip to content

Qt 6

This is where all Qt 6 related questions belong

877 Topics 4.3k Posts
  • HELP virtual ENV

    Solved
    5
    0 Votes
    5 Posts
    469 Views
    J
    @JonB Windows 64 Error : Use of undeclared identifier case AF_INET: inet_ntop(AF_INET, &(((struct sockaddr_in *)sa)->sin_addr), host, salen); break; case AF_INET6: inet_ntop(AF_INET6, &(((struct sockaddr_in6 *)sa)->sin6_addr), host, salen); break;
  • I have a question regarding the build process.

    Unsolved
    2
    0 Votes
    2 Posts
    279 Views
    jsulmJ
    @Teemo-of-LOL said in I have a question regarding the build process.: When I receive the program on another computer Please explain what exactly you copy to the other machine. Do you also copy the build folder? If so, then do not do that. Only source code is needed to build. Also mentioning what errors you actually get can help to find the problem.
  • 0 Votes
    4 Posts
    3k Views
    Ronel_qtmasterR
    @Teemo-of-LOL maybe because you compiled qt for release version
  • Sending Large file over QTcpSocket

    Unsolved
    18
    0 Votes
    18 Posts
    2k Views
    Ronel_qtmasterR
    @JonB Yes exactly.The only thing is that he will have to remove the request headers from the sent packet, and put the original data in a file. In a nutshell, when sending files with upload, the request headers are sent with the file data.You just need to separate both and keep the essential part
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Change App Icon (on the desktop)

    Unsolved
    4
    0 Votes
    4 Posts
    450 Views
    JonBJ
    @yass1213 First just verify that C:\Qt2\Tools\mingw1120_64\bin\gcc does indeed exist. i ve added the C:\Qt2\Tools\mingw1120_64\bin\windres.exe to the PATH but in vain the error persestis I trust you mean you added just C:\Qt2\Tools\mingw1120_64\bin to PATH. If nobody here knows/gives you an answer, I suggest you Google for windres.exe: can't popen This error has popped up occasionally over the years --- going back a decade! --- for installations of MinGW. I'm afarid I think you would have to look through these to see if any apply to your situation.
  • Qt6.6.1 error question (C2882 : QCP)

    Unsolved
    6
    0 Votes
    6 Posts
    895 Views
    Teemo of LOLT
    @sierdzio okay. Thank you. I will try. and tell you about result :)
  • missing lrelease

    Unsolved qtcreatorbug lrelease qmake
    2
    0 Votes
    2 Posts
    1k Views
    Christian EhrlicherC
    So you did not install Qt6 via the online installer but want to use the one from Ubuntu? Then you also have to install all Qt development packages.
  • Qt6 QtMultimedia : using custom gstreamer pipeline

    Unsolved qt6 qtmultimedia gstreamer pipeline
    11
    0 Votes
    11 Posts
    5k Views
    malikcisM
    @DeepakVishak SGaist is right. custom GStreamer pipelines have been dropped in Qt 6 Multimedia, however you can achieve the same using qml6glsink. Have a look at this example: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/tree/1.24/subprojects/gst-plugins-good/tests/examples/qt6/qmlsink?ref_type=heads
  • Converting QString to a quoted shell argument.

    Unsolved qt6 linux qstring
    3
    0 Votes
    3 Posts
    565 Views
    JonBJ
    @Basile_Starynkevitch I don't know what your command is or how you are presently sending it to QProcess as you do not show these. You can normally leave the correct quoting to QProcess with an argument list. If, for some reason, you have a string and want to split it into arguments for QProcess you can use QStringList QProcess::splitCommand(QStringView command). Also void QProcess::startCommand(const QString &command, QIODeviceBase::OpenMode mode = ReadWrite) presumably uses that internally. Note however that you reference https://docs.gtk.org/glib/func.shell_quote.html and that says Quotes a string so that the shell (/bin/sh) will interpret the quoted string to mean unquoted_string. Quoting to a shell like /bin/sh can have its own rules. For example, echo '$HOME' and echo "$HOME" behave differently. I don't know how/whether you deal with that. And your GLib shell_quote ignores this.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    29 Views
    No one has replied
  • for C++ language standard

    Solved
    10
    0 Votes
    10 Posts
    2k Views
    Teemo of LOLT
    @sierdzio I replied to someone else by mistake. I noticed it late. It seems similar to what I found. Link: https://stackoverflow.com/questions/70373606/how-to-fix-qt-requires-a-c17-compiler. Thank you for the detailed explanation. In my case, although I don't encounter errors, it seems I need to reconfigure the C++ standard language setting. Thank you
  • Q_D macro not working

    Unsolved
    7
    0 Votes
    7 Posts
    797 Views
    JonBJ
    @Ash-V May I ask: I thought you were a "beginner" at Qt, maybe C++ too (but perhaps not). If you know what you are doing, and have a good usage case, using all the Q_D and d_ptr stuff may be fine. But I, and most people, have never used them, so I just wonder whether you might be over-complicating things.
  • Question about Qtftp.

    Solved
    2
    0 Votes
    2 Posts
    246 Views
    Christian EhrlicherC
    @Teemo-of-LOL said in Question about Qtftp.: Does the qtftp functionality also come included in Qt5compat? No, QFtp is a separate library. As we already told you, you have to port them by yourself if you need it or use QNetworkAccessManager.
  • how to change ui designer Color?

    Solved
    4
    0 Votes
    4 Posts
    451 Views
    pedisChenP
    May be this is a window11 system problem. now this problem is disappear
  • Fail to configure Src

    Solved
    9
    0 Votes
    9 Posts
    1k Views
    pedisChenP
    @Christian-Ehrlicher Thank you very much!
  • How to compile 32bit QT6.5.3 from Src?

    Solved
    2
    0 Votes
    2 Posts
    397 Views
    Christian EhrlicherC
    Just open the 32 bit MSVC command prompt instead the 64bit one.
  • When exactly to use a Q_PROPERTY ???

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    Ash VA
    @JonB Thank you Jon ! Thanks for giving this additional valuable reply....
  • expected primary expression before ',' token

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    Ash VA
    @Axel-Spoerl Thanks Axel ! Thank you very much for your valuable reply !
  • Issues with the new Qt version using the older compiler

    Unsolved
    3
    0 Votes
    3 Posts
    412 Views
    TomZT
    @JonB said in Issues with the new Qt version using the older compiler: I don't know what "imported the old Q5.5.0 compiler into Qt6.6.2" means I expect the latter to be QtCreator. What I find more interesting is the mention of 5.5 That release was tagged June 2015