Ensure you build a debug version of your project:
then run the program in the debugger:
generate the crash:
then look at the debugger panes at the bottom of your screen. The left panel is the back trace (yours will be longer). Right-click to copy the text:
Select the top-most line in the back trace that is in your code. There is a panel that shows the variables in scope at the time of the call selected.
@KenAppleby-0 said in No Console Output To Terminal on Windows When Using CMake:
So the answer seems to be to not have either WIN32 in the add_executable or WIN32_EXECUTABLE ON in the set_target_properties?
Yes - as the documentation states WIN32 creates an application with WinMain() as entry point and therefore has no console.
@AnneRanch said:
how do I DELETE the TEST menu ?
Right click on it in the object tree and select "Remove".
I want to delete "menuBluetooth and start over
Same. Right click on it in the object tree and select "Remove".
That's how you delete menus. To delete an action right click on it in the actions window and select "Delete" (a bit of option naming inconsistency but whatever).
add new menu "Bluuetooth" .
All I am getting is "TYPE here " and no way to say "save it " .
Double click on "Type Here", type the text you want to see and hit enter. If you do that on a menu bar it will add a menu. If you do that inside a menu it will add an action.
There is no obvious "drag and drop" ...
Drag & drop is for existing actions. They are listed in the actions window. You dag it from there and drop it in the preview window of your form onto the menu you want to put it in.
If you want to create a new action that's not yet on the list you can use the "Type Here" method mentioned above. That will create a new action and add it to the menu. Alternatively you can create an action by clicking the "New" icon on the toolbar of the actions window and then drag&drop it onto a menu.
https://stackoverflow.com/questions/4507864/how-to-customize-the-title-bar-of-a-qt-app-through-qt-stylesheet
Maybe you have to customize title bar. That means to create your own one.
Since it's a new process, I think the environment should be clean. The simplest is to create a test application where you mix both as you intend to do in your main application.
@micha_eleric
Hide what, instead of delete? The OP is asking a common question about how to have a button against each row, to delete that row from the database, or similar functionality.
git branch dev creates a branch but does not switch your working copy to that branch. Follow up with one of git switch dev or git checkout dev.
You can create a branch and switch your working copy in one action git checkout -b dev
Edit: Actually @JKSH is closer to answering the particular issue.
Hi and welcome to devnet,
I would guess that is a package issue, unless explicitly disabled the plugin should be built and thus made available.
You should check the bug report system to see if there's already something related.
Since it's a c++ class you can derive from it like for any other class.
But it won't help you since QPushButton instantiates a QStyleOptionButton internally, not your class.
I also don't see why deriving from QStyleOptionButton should be needed.
@mjsmithers said in Subclassing QThread and signals/slots?:
a) why are signals and slots even allowed in a subclassed thread - maybe there should be a compile error or warning? - and
I don't see a reason why QThread should not have signals and slots. Even when you derive from it, the object should be able to emit signals. Having a slot is also fine because you can also move the derived QThread into the newly created thread.
b) why aren't my realtime audio apps suffering more poorly or even crashing?
I don't understand this - if your code is correct why should it crash?
The *_p.h files are the declaration of a private implementation, PIMPL, of the related class e.g., qlocale.h and qlocale_p.h. PIMPL is used for varied reasons, for example:
Make maintaining binary compatibility across versions easier. So, for example, code written and linked against Qt 5.12 can use a Qt 5.15 library set even if the internal implementation of some classes is wildly different.
Make implementation opaque, with only a public API header published with a binary library.
Qt does both. Have a read here for example.
/dev/rfcommXYZ - it is bluetooth serial port
/dev/ttyUSBXYZ (or something like that) - it is virtual serial ports provided by Prolific 2303 chip
what's a question?
You want to install Qt 5.15 etc. but you have an installer for Qt 4.5.1.
Qt 4 seriously predates Windows 10, so it is probably unsurprising that there may be issues.
Try the current installer from qt.io or your commercial account if that is appropriate.
I don't see what this should have to do with qmake or cmake - those defines come from Qt (exactly: qsystemdetection.h, automatically included by qglobal.h) so make sure qglobal.h is included before you use those macros.
Hi and welcome to devnet,
To the best of my knowledge, not in a straightforward way.
This guide might help you get started though.
Note that PyQt is not from the Qt Company so their forum may have answers on that subject.
Hi,
That's up to you. From the looks of it, you seem to need to build a queue of requests or at least their components. Then when a request should be processed, extract that component, create and send the request and then keep a hash with the component associated to the reply object. If there's a failure, put the component back in the queue otherwise, clean things up.
Note that you must also consider the number of failures and maybe stop at some point.