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?
Читать полностью…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
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
What do you mean by alternative to UI on Rust? Do you mean an alternative to using QML with Rust?
Читать полностью…https://github.com/slint-ui/slint uses a syntax that's similar to QML
Looks like a good alternative for Rust UI
Simplest way is to use file copies module. The below snippet copies qm files to DESTDIR. # Add the file_copies module
CONFIG += file_copies
# Add a variable that describes the copied files.
COPIES += translations
# Determine with which extension we need to copy the files and in what way they are located
translations.files = $$files($$PATH_SRC_ROOT/*.qm)
# Specify the path where to copy files
translations.path = $$DESTDIR
First of all, since 0 is your control character / number., do you need to add to the vector?
For simplicity sake, I am sending you code snippet which ignores 0 and checks vector for strictly decending. using namespace std;
int main() {
std::vector<int> vec;
int in;
std::cout<<"Enter Number: "
cin>>in;
while(in !=0) {
vec.push_back(in);
cout <<"Enter Number: ";
cin>>in;
}
auto itr = std::adjacent_find( vec.begin(), vec.end() , std::less_equal<int>() );
if( itr == vec.end() )
cout << " Strictly decending ";
else
cout <<" Not strictly decending ";
return 0;
I rarely build for emulator. Do you see these errors while building for android device?
Читать полностью…my application 's charts use qt graphicsview ,but add more than 200 items,it's performance issue
Читать полностью…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.
Читать полностью…you use tcpServer->write(byteArray) I suppose.... So you just sum up byteArray.length()
Читать полностью…well, you count the data bytes you transfer and divide that by the time of the transfer
Читать полностью…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
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.
Читать полностью…hi
I want create tcp server but in my code server.listen() can not be something like "198.168.0.1"
Is it possible to create QtQuick.Controls Action, which will accept Play/Pause button from keyboard?
Читать полностью…Welcome to the group, @ambition_Anime! :-)
Wanna share your story of how you started with Qt, QML or C++? Maybe some nice feature that made you stick with it.
Rules are set on the description of the group. :)
Could you try replacing line 2 as below and checkm_printer.pageLayout().setPageMargins(QMarginsF(0,0,0,0))
;
Also, I don't think any physical printer will be able to accept this margin. It might work for 'print to PDF'. You may check the return value of the setPageMargins() method.
Also share the Qt version you are using for building for Android. Please ensure there is no error in Android env setup: preference -> devices -> Android
Читать полностью…