cplusplusqt | Unsorted

Telegram-канал cplusplusqt - C++ & Qt

1169

Link: @CplusplusQt Embedded: @EMBCpp • Allowed Topics: C++ and everything related to Qt • Use only English • No Private Message without asking user's permission • No NSFW • No Spam • No unauthorized Bots • No Offtopic • No Self Promotions

Subscribe to a channel

C++ & Qt

My QSQLite database initialized w/o error, but it doesn't write to disk? What do you think is going wrong in my init file ?

Читать полностью…

C++ & Qt

Connect the textChanged signal to a function that makes the first character uppercase

Читать полностью…

C++ & Qt

How do I always change the LineEdit first character to uppercase

Читать полностью…

C++ & Qt

I try to implement that you say...but server doesn't read & error occurred.

Читать полностью…

C++ & Qt

client.cpp
QByteArray byteArray = str.toUtf8();
byteArray.prepend(header);

int bytes_written = 0;
while (1){
if(bytes_written == byteArray.size()) break;
int written = socket->write(byteArray.mid(bytes_written,1),1);//1Byte
bytes_written += written;
socket->waitForBytesWritten();
}

Читать полностью…

C++ & Qt

Is this some defect of moc or correct behavior?

Читать полностью…

C++ & Qt

Hi, Why space between two widget? what problem?

Читать полностью…

C++ & Qt

like this...speed:1.33MB/s

Читать полностью…

C++ & Qt

how count data bytes that transfer?I have no idea:(

Читать полностью…

C++ & Qt

Hi friends.Im' beginner. my project is sending video from QTCpServer to QTCPclient . I'm want to know data transfer rate when sending & show it . I don't know to implement code of data transfer rate in sending file.Can you help me?

Читать полностью…

C++ & Qt

If you want maps, you can use QtLocation which has esri, open box map providers. (They are provided as a plugin to QtLocation module)
Unfortunately Google isn't one of the provider. Luckily you have a third-party provider plugin for Google maps which you can try using with QtLocation. Below is the repo link.

https://github.com/vladest/googlemaps

Читать полностью…

C++ & Qt

It is working only with 127.......

Читать полностью…

C++ & Qt

I had the issue with some web related module. Even adding -appstore-ompliant to macdeployqt would include it int rhe package. So eventually I manually deleted the file from the package.
https://github.com/nymea/nymea-app/blob/master/nymea-app.pro#L50

Читать полностью…

C++ & Qt

What do you mean by alternative to UI on Rust? Do you mean an alternative to using QML with Rust?

Читать полностью…

C++ & Qt

https://github.com/slint-ui/slint uses a syntax that's similar to QML
Looks like a good alternative for Rust UI

Читать полностью…

C++ & Qt

Come on, do not post the same thing on all topics. If you're proramming with Qt Widgets, post it only in here.

Читать полностью…

C++ & Qt

so far I have tried
auto var = ui->LineEdit->text()[0];
var = var.toUpper();

Читать полностью…

C++ & Qt

but that is unrelated to calculating the transfer speed... did you have a working code without the transfer speed calculation?

Читать полностью…

C++ & Qt

server.cpp

while(socket->waitForReadyRead()){
buffer.append(socket->readAll());}

Читать полностью…

C++ & Qt

Question regarding multiple qml engines

Qt Quick has QQmlEngine and QQmlContext. We can create multiple context such that the cpp objects have specified scope in qml. Can we create multiple engines? If we can create multiple engine whats the use case? And lastly.. whats the pros and cons of creating multiple engines?

Читать полностью…

C++ & Qt

If a template class A
template<typename T> class A;
it has a friend template operator ==
template <typename E> friend bool operator ==(const A&,const A<E>&){…}
But in my project I haven't called this function in the code, So this code will not be generated by the compiler in the end. Even though underlying type T or E isn’t overloading operator ==, this code should pass compiler check. But Qt6 will generate some code by moc to check these types have some function or not, It seems that moc can't determine whether the code is finally generated by the compiler.

Читать полностью…

C++ & Qt

Well, you remember the time when the transfer is started, and you count the bytes written to the socket... then, at any time you can divide the amount of transmitted bytes with the amount of passed seconds and get B/s... That would get you the average speed of the whole transfer. If you want the current speed, you need to reset the byte counter and start counting from 0 every time interval you want to measure.

Читать полностью…

C++ & Qt

you use tcpServer->write(byteArray) I suppose.... So you just sum up byteArray.length()

Читать полностью…

C++ & Qt

well, you count the data bytes you transfer and divide that by the time of the transfer

Читать полностью…

C++ & Qt

Qt location went away with the move to Qt 6, however Qt 6.5 may bring back Qt Location, however it isn't guaranteed yet that it will be released with Qt 6.5.

Also, the API will/has change(d) substantially.

More info here:
https://www.qt.io/blog/the-road-to-qt-location

Читать полностью…

C++ & Qt

The default parameter of listen for the host address is QHostAddress::Any, so it listens on all the network interfaces for both ipv4 and ipv6. Make sure you use the same port number for the socket that server is listening to.

Читать полностью…

C++ & Qt

hi
I want create tcp server but in my code server.listen() can not be something like "198.168.0.1"

Читать полностью…

C++ & Qt

https://www.ics.com/technologies/qt/qt-based-clients-google-apis

Читать полностью…

C++ & Qt

It's made by some former Qties/Trolls.

Читать полностью…

C++ & Qt

Make a habit to use override keyword

Читать полностью…
Subscribe to a channel