Skip to content

Qt 6

This is where all Qt 6 related questions belong

828 Topics 4.0k Posts
  • pixmap.loadfromdata fails using QT6.6.1

    Solved
    13
    0 Votes
    13 Posts
    722 Views
    R

    @JonB

    That fixed it! Thanks Christian and Jon for your help.

    Sorry to be such a pain Christian.

    Rick

  • Problems with QSerialPort

    Unsolved
    6
    0 Votes
    6 Posts
    559 Views
    aha_1980A

    This lead to QTBUG-123768

  • compile Qt 6.5.3 Src fail

    Unsolved
    2
    0 Votes
    2 Posts
    213 Views
    Axel SpoerlA

    @pedisChen
    See this post.

  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    17 Views
  • question for Qt C++20 support

    Unsolved
    8
    0 Votes
    8 Posts
    587 Views
    Chris KawaC

    @Teemo-of-LOL said:

    Aren't there two categories: supporting some parts of the C++ standard or supporting it entirely?

    When it comes to a compiler yes, you could say that. When it comes to a library, like Qt, no, that statement makes no sense.

    The article you linked is talking about Qt using some features from the C++17 standard and thus requiring a compiler that provides this language version.

  • HELP virtual ENV

    Solved
    5
    0 Votes
    5 Posts
    211 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
    118 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
    592 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
    212 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
    358 Views
    Teemo of LOLT

    @sierdzio okay. Thank you. I will try. and tell you about result :)

  • missing lrelease

    Unsolved
    2
    0 Votes
    2 Posts
    591 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.

  • 0 Votes
    11 Posts
    4k 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
    3
    0 Votes
    3 Posts
    267 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
    735 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
    271 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
    137 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
    214 Views
    pedisChenP

    May be this is a window11 system problem. now this problem is disappear