Thank you for the report. I have banned the user, which got rid of the spam posting. Not a loss, as this user did not post any other content on the site. Just deleting this one posting was not possible.
Thanks for reporting this.
@Prath said in Regarding Projector Programming using QT:
after running the above programme
The Serial Terminal example I suggested before?
Have you tested managing the projector using any other terminal application? Just to validate it works fine...
I am trying signal slot connection to distribute frames :) little stupid.
one idea is the putting a shared QQueue and pulling frames from threads to process
What is the best approach to wait Queue is not empty without wasting cpu time ?
@pauledd said in stop a loop in object that has been moved to a QThread?:
As shown, at no time is this function checking the Qt Event loop.
// process server
// process events like signals
m_running = false;
There are signals connected to the slots above to control my server.
@JKSH This is how I emit the OpenCV mat data:
emit processedImage(2, videoFrameOut.ptr(0,0),videoFrameOut.cols, videoFrameOut.rows, videoFrameOut.step);
The first parameter is just used to determine which display should draw the image and the rest are dimensions and stride which I think are ok.
@SGaist You are correct, I changed the line below to make a copy:
displayImage = QImage(imageData, width, height, step, QImage::Format_RGBA8888).copy(0,0,width,height);
I think this fixed the issue. I got a couple of crashes in 'memcpy' but that was when loading files a little too quickly. I think most likey resizing the data quickly was the issue. I will do more testing this week and post the results.
I've decided to give up trying to build it and am now installing the 5.13.2 binaries directly. I have the GnuWin32 stuff needed for Qt WebKit, though, and I'm wondering if I'm still going to need to build that or if the prebuilt binaries come with it already.
Could it be possible you connect QNetworkAccesManager::sslErrors() signal to some slot where you can inspect what may be going on, in particular look for QSslError::SelfSignedCertificate which you can ignore...
see snippet in QNetworkReply::ignoreSslErrors() documentation.
@markd said in Trying to implement QChart, get error undefined reference to 'qt_version_tag@Qt_5.9':
As noted above, if I comment out the 'new QChart(); line I get the following:
$ ldd LTSD | grep -i libQt5
libQt5Widgets.so.5 => /opt/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Widgets.so.5 (0x00007f2451f3d000)
libQt5Gui.so.5 => /opt/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Gui.so.5 (0x00007f245178f000)
libQt5Core.so.5 => /opt/Qt5.9.1/5.9.1/gcc_64/lib/libQt5Core.so.5 (0x00007f2451055000
As soon as I add the line " QChart *slagchart = new QChart();" to my code, I get the error. The linker doesn't build an executable so I can't check ldd to see where it is trying to get the library.
@Marek said in Smooth out gps path on map (QLocation), how to ?:
I would like to display this route on a QML map and make it smooth
Have you try your app displaying a live GPS feed?
If so then you may want to use your log file as source, take a look at this article.
I finally got this working. The info plist needs to have a string in place to ask for permissions (as mentioned already) and the app, when signed, needs to have entitlements attached that include:
Hope that helps someone else in the future!
@SRaD you may want to think of connect, signal and slot as wiring, switch and bulb respectively.
With connect() you wire the switch to the bulb, then when you emit a signal is like actuating the switch so the electricity ends up in the bulb (the slot) where you carry on things (light your room).
@jsulm sorry for the late reply, i am trying to implement this on a desktop, i am able to take a picture using the camera and also able to store it on to my local desktop is there a way i can take access to my google drive stroge server and upload the image directly to the server?
@Christian-Ehrlicher said in modify QTableWidget row contents:
btw: why are you creating the xml reader on the heap - now you're leaking it.
I do this at the end.
// close reader and flush file
@Christian-Ehrlicher said in modify QTableWidget row contents:
And what's the exact problem now?
This is im looking forward to implement:
Click of particular row on QTablewidget AND modify should open a dialog with defualt some default values (read from that particular xml entry).
it will be really helpful if some can show this with some pseudocodes.
@webzoid said in Qt3DCore - High CPU Usage:
@JKSH I'm assuming that you replaced "my_model.obj" with an alternative?
Ah, no I didn't notice that your code needs my_model.obj. (Suggestion: When you want others to reproduce a problem that you're seeing, it's best to use examples that don't require others to create their own resource files)
I've just run the Basic Shapes example and my current CPU usage is at 52.1%!!! Yikes!
OK, since you can reproduce your problem on an official example, let's stick to this. Use this example when you submit a bug report.
My machine is an Intel Core i5-2500 @ 3.30GHz + dual AMD Radeon HD 7500 graphics cards + 16GB RAM.
That should certainly be enough to run the Basic Shapes example comfortably.
Ok, so one thing I didn't highlight is that I'm running 3 displays from those dual graphics cards. Interestingly, if I have the Qt example application running on the primary display, the CPU usage is high. If I move the Qt window to one of the other displays then the CPU usage drops by about 30% to around the 24% region.
24% still seems quite high. What happens if you only have a single display connected to your GPU?
I just noticed this on a different machine:
Intel i7-7770 3.6 GHz
16 GB DDR4 RAM
3071MB NVIDIA GeForce GTX 1080 Ti
1920 x 1080 display
Qt 5.13.1 for MSVC 2017 32-bit
Behaviour for the Basic Shapes example when idle:
Would you be happy to open a report at https://bugreports.qt.io/ ? (Provide as much details as you can, using an official example)
Still don't work.( But as I've mentioned above I've already found in Woboq code browser. On this link).
Interesting. I download Sources to make MySQL work, but it doesn't. Maybe that's why? Because Sqlite does. But I'm not sure what does Target path means.
@JonB ItemIsSelectable seems to have precedence over ItemIsUserCheckable. So, mixing the two flags, does not show the checkboxes.
The problem with not using ItemIsSelectable is that the clicks over the items text are not being registered. So there's no way of knowing when the click wasn't over the check boxes. BTW, I don't think this behavior is so rare. I'm pretty sure a lot of applications register clicks on a check box text as if they were in the check box itself.
It's a pity that it's not possible to add widgets inside combo boxes. I'll have to either implement a drop-down list widget or forget the dual behavior and just add a selectable "Done" item at the end of the list (and annoy the user in the process, because of the lack of clicks registering over the other items text).
Not sure what you tried. If it was what @qwasder85 typed in above, ComboBox will be wrong, you'll need to try with QComboBox ....
I don't know exactly what you will want, you'll have to play and read. But I would start by verifying that from the docs page you can indeed get some of those samples to work, soi you know you're doing stylesheet right, and then move on to exactly what you need.