Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.5k Posts
  • Creating vector of QLineEdit and connect signal for each one

    Unsolved
    6
    0 Votes
    6 Posts
    532 Views
    JonBJ
    @lukutis222 said in Creating vector of QLineEdit and connect signal for each one: I used strcmp because I come from C background. Most C++ features are still new to me. So did I :) But these days there are better C++ (inbuilt, std:: or Qt) alternatives to nearly every function which we used to use from the C runtime library.
  • howto re package a qt-installer,such as "qt-opensource-windows-x86-5.11.3.exe"

    Locked Unsolved
    2
    0 Votes
    2 Posts
    178 Views
    Christian EhrlicherC
    Dupe of https://forum.qt.io/topic/144886/howto-re-package-a-qt-installer-such-as-qt-opensource-windows-x86-5-11-3-exe - closed
  • QNetworkReply error "Unable to write"

    Unsolved
    5
    0 Votes
    5 Posts
    809 Views
    SheepS
    @JonB ..am really sorry i posted the wrong code.. The API has three stages of uploading the files...and the code i initially was the preparation stage... that`s why i used the QNetworkReply *QNetworkAccessManager::post(const QNetworkRequest &request, const QByteArray &data) ..am really sorry about that.. But here the code for uploading the files // chuckIterator is a QList<QByteArray>::iterator class member variable pointing to member a QList<QByteArray> class member // Since the api requires to divide any files greater than 4mb into segments of 4mb (depending on the files size) if (!chuckIterator.hasNext()) { return; } QByteArray data_ = chuckIterator.next(); int partSequence = mFileChuncks.indexOf(data_); qDebug() << "running part sequence " << partSequence; QString url = QString("https://d.pcs.baidu.com/rest/2.0/pcs/" "superfile2?access_token=%1&method=upload&type=tmpfile&" "path=/%2&uploadid=%3&partseq=%4") .arg(access_token) .arg(remotePath) .arg(mUploadId) .arg(partSequence); qDebug() << "Request Url " << url; auto path = localPath; QHttpMultiPart *multiPart = new QHttpMultiPart(QHttpMultiPart::FormDataType); QFileInfo info(path); QString fileName = info.fileName(); QHttpPart filePart; filePart.setHeader(QNetworkRequest::ContentTypeHeader, QVariant("file/*")); filePart.setHeader( QNetworkRequest::ContentDispositionHeader, QVariant(QString("form-data; " "name=\"file\";fieldname=\"chapter\";filename=\"%1\"") .arg(fileName))); filePart.setHeader(QNetworkRequest::ContentLengthHeader,data_.size()); filePart.setBody(data_); file->setParent(multiPart); multiPart->append(filePart); QNetworkRequest request(url); QNetworkReply *mReply = networkManager->post(request, multiPart); if (mReply) { connect(mReply, &QNetworkReply::finished, this, [=]() { this->finished(mReply); }); }
  • QTextStrem stdin dont work?

    Solved
    8
    0 Votes
    8 Posts
    747 Views
    posktomtenP
    @SGaist I commented it out.
  • Golang library with Qt project. How?

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    SGaistS
    @bogong said in Golang library with Qt project. How?: @SGaist How to build Goland like shared library for C/C++ well known for me. Seeking example of how to organize Qt project with CMake for being able to compile it from Qt Creator. Especially in case of using it for iOS/Android. Mostly this question about CMake and Qt not about Golang itself. Well, neither the thread title nor your original post mentions any of these requirements. As for your project, you can follow the Android Getting started guide.
  • not connect "org.freedesktop.IBus"

    Unsolved
    5
    0 Votes
    5 Posts
    4k Views
    C
    QtBase fix: https://code.qt.io/cgit/qt/qtbase.git/commit/?id=9d031caf09b2c14328268ef0e871efd30e80eab2
  • Qt open source application for commercial use?

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    jeremy_kJ
    @SimonSchroeder said in Qt open source application for commercial use?: @jeremy_k said in Qt open source application for commercial use?: The LGPL and GPL allow for commercial use. Companies such as Red Hat have made a business of it. This statement might be a little bit misleading. With the GPL you need to provide your own source code to your customers. Only the LGPL does not have this requirement. You seem to be rephrasing my second paragraph.
  • Cross compile Qt 5.5.0 for raspberry CM3 lite

    Unsolved coss-compile raspberry cm3
    5
    0 Votes
    5 Posts
    2k Views
    ocgltdO
    Problem still exists in Qt 5.15.9 Would be nice if someone can post how they solved it (and moving to a later Qt5 version is not an option because 5.15.9 is the latest at this time)
  • Don't show hidden files with QFileSystemModel

    Unsolved
    10
    0 Votes
    10 Posts
    2k Views
    G
    What about such option as show hidden files mac?
  • Setting QWebsocket SO_KEEPALIVE parameters

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    KutyusK
    Based on this, I managed to solve it: https://forum.qt.io/topic/106382/how-to-check-server-life-using-qwebsocket-ping-pong?_=1683206587457
  • Dropdown with the QTableView

    Unsolved
    4
    0 Votes
    4 Posts
    294 Views
    JonBJ
    @DerReisende Yes they would be consecutive, but how would that equate to any kind of "group node" in a QTableView which is "flat", and has no support for any kind of "grouping"? Besides which, there is no evidence there is any kind of "sorting by pt*" requested by the OP. These are rows. They are simply (apparently) always to be there, in pt1..100 order, no "sorting", "comparing" or "totalling" of any kind, no suggestion that only some are present. Unless OP has some quite different specification for what they are which has not been stated.
  • Need an advice for adding geopositional points to the map

    Solved
    3
    0 Votes
    3 Posts
    268 Views
    Atr0p0sA
    @JoeCFD Thanks, I guess it's time to get acquainted with qml :)
  • This topic is deleted!

    Unsolved
    8
    0 Votes
    8 Posts
    127 Views
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • How to compile for Arm/Raspberry

    Unsolved
    6
    0 Votes
    6 Posts
    413 Views
    B
    @ocgltd How about this: https://wiki.qt.io/Cross-Compile_Qt_6_for_Raspberry_Pi
  • How to edit a .qm file?

    Unsolved
    2
    0 Votes
    2 Posts
    7k Views
    Pl45m4P
    @Valso *.qm files are compiled *.ts (Translation Files) used at runtime to translate text in your GUI into different languages, if configured. It makes no sense trying to edit qm files. Edit your translations instead. Have a look at Qt Linguist for more information.
  • QCheckBox and QRadioButton not displaying boxes or marks

    Unsolved qt6 checkboxq qcheckbox
    6
    0 Votes
    6 Posts
    1k Views
    S
    @ChrisW67 It did not. I ended up reinstalling Linux and that seems to have fixed it. I still have the old install available so I'd like to find out the root cause still.
  • Multiple QRemoteObjectHost nodes for the same QObject?

    Solved
    2
    0 Votes
    2 Posts
    192 Views
    R
    @RogueWarrior Apparently not. You get an error if you try to have more than one host. However, if you use Avahi or some variant of Zeroconf and the host URL is hostname.local.:##### where hostname is the name of the machine and ##### is the port number you want to use, that gets resolved on any network interface. Note: it gives you a warning that it's attempting to resolve the name but it does work.
  • What do I have to do to see my plugins ?

    Unsolved
    2
    0 Votes
    2 Posts
    198 Views
    T
    @giorgik63 Do you mean after creating your plugin, you manually copied pasted dll under \YOUR_FOLDER\QtCreator\bin\plugins\designer and the paste did not work? Then that could be a question of writing permission. If not manually copied pasted, could you please first verify the dll wasn't created elsewhere under your project folder?
  • QRemoteObject Tcp examples

    1
    0 Votes
    1 Posts
    322 Views
    No one has replied