Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • QVariant: unknown user type

    Solved
    8
    0 Votes
    8 Posts
    2k Views
    Christian EhrlicherC
    @sp3x said in QVariant: unknown user type: @Christian-Ehrlicher said in QVariant: unknown user type: qRegisterMetaType Thank you very much. That's working. I've already played around with qRegisterMetaType but I missed to pass the right argument to the function ("Widget::HostsTableWidget::HostList") Yes, it should/must be the fully qualified name.
  • QIntValidators dont work for me

    Unsolved
    11
    0 Votes
    11 Posts
    4k Views
    JonBJ
    @DrewB Does this behave any differently from the clearer QIntValidator?
  • This topic is deleted!

    Solved
    3
    0 Votes
    3 Posts
    15 Views
  • Scrollbar in Scroll area cant set value

    Solved
    3
    0 Votes
    3 Posts
    446 Views
    A
    @Chris-Kawa omg it worked bro thanks alot!!
  • "does not refer to a value" error

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    Pl45m4P
    @AnneRanch said in "does not refer to a value" error: // event void MainWindow::newSubWindow(void) connect(this,SIGNAL(addSubwindow()),MainWindow,SLOT(newSubWindow())); //&MainWindow,SLOT(newSubWindow())); emit addSubwindow(1); What file/class we are in here? (i.e. what is this?). If this class doesn't have access to your MainWindow object, that you want to connect, this can't work. I doubt, that your object pointer is called/spelled MainWindow. And if it does, it would be very confusing.
  • QGraphicsItem drawing issue

    Unsolved qgraphicsitem drawing
    3
    0 Votes
    3 Posts
    841 Views
    W
    @JonB Thanks for your reply! My goal is to draw a filled triangle like this: [image: 4f650996-8c43-4745-ab2c-97adac261555.png] The only way I'm able to achieve this that I draw two shapes: one fills the whole boundingRect() and a second one draws the outline in boundingRect() adjusted by the pen width. I'm not sure that it's a good way to solve this problem. Any tips?
  • Replacing QString().sprintf with arg calls for double

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    J
    Thank you all for this. I was expecting that I needed the '0' fillchar to fill at the end as well, but I was clearly wrong there. This helped me a lot.
  • Wrong enum value from QSettings using Qt 6

    Solved
    21
    0 Votes
    21 Posts
    7k Views
    Christian EhrlicherC
    @J-Hilk said in Wrong enum value from QSettings using Qt 6: because I don't remember it ever working without the Q_ENUM macro? It worked in Qt5 so it's a Qt6 regression. And it is very surprising because QVariant<int>() properly converts to an enum whereas QVariant<QString>() did not.
  • Parse JSON array form server

    Solved
    2
    0 Votes
    2 Posts
    142 Views
    Christian EhrlicherC
    As you already wrote it's an array, not an object, so use the correct function. And please do not post screenshots but text.
  • QT BLE scanner example causes high cpu usage

    Unsolved
    2
    0 Votes
    2 Posts
    403 Views
    T
    Update: Looked at debug output of both apps. Qt sample outputs loads of errors onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(1) tid(3c4c0) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(2) tid(3c4c0) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(1) tid(3c4c0) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(3) tid(39234) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(4) tid(39234) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(2) tid(39234) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(5) tid(3abdc) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(6) tid(3abdc) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(3) tid(3abdc) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(7) tid(3a834) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(8) tid(3a834) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(4) tid(3a834) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(9) tid(3b8ac) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(10) tid(3b8ac) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(5) tid(3b8ac) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(11) tid(39c60) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(12) tid(39c60) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(6) tid(39c60) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(13) tid(3830c) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(14) tid(3830c) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(7) tid(3830c) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(15) tid(393bc) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(16) tid(393bc) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(8) tid(393bc) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(17) tid(30940) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(18) tid(30940) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(9) tid(30940) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(19) tid(35a8c) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(20) tid(35a8c) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(10) tid(35a8c) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(21) tid(3ca50) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(22) tid(3ca50) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(11) tid(3ca50) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(23) tid(3d8ac) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(24) tid(3d8ac) 80070490 Element not found. onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(12) tid(3d8ac) 80070490 Element not found. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
  • Passing pointer issue

    Unsolved
    3
    0 Votes
    3 Posts
    308 Views
    A
    I have changed "my architecture" and decided to pass only part of the data - QList. //LocalAdapterAddressList FSLA = new Form_SetupLocalAdapter(); // LocalAdapterAddressList); FSLA = new Form_SetupLocalAdapter(LocalAdapterAddressList); // &LocalAdapterAddressList); FSLA->show(); i also added a constructor to process the passed data (pointer ) public: explicit Form_SetupLocalAdapter(QWidget *parent = nullptr); explicit Form_SetupLocalAdapter(QList <*data_list>); //LocalAdapterAddressList Now I am getting this error /mnt/07b7c3f8-0efb-45ab-8df8-2a468771de1f/PROJECTS/RECOVERY/BLUETOOTH/SOURCE/CCC_SOURCE/terminal_SERIAL_BLUETOOTH_VER_1/terminal_SERIAL_BLUETOOTH/terminal_BLUETOOTH/form_setuplocaladapter.h:17: error: use of undeclared identifier 'data_list' In file included from form_setuplocaladapter.cpp:1: ./form_setuplocaladapter.h:17:45: error: use of undeclared identifier 'data_list' explicit Form_SetupLocalAdapter(QList <*data_list>); ^ I am not familiar with "template" and have no idea how to fix this. I have been RTFM and have not found a single example of passing template variable (object) as a parameter . All examples are about HOW to build template class. I do not need that, I already have a class I want to reuse.
  • How to use Windows 11 Style

    Unsolved
    2
    0 Votes
    2 Posts
    372 Views
    Kent-DorfmanK
    ok. go for it. I don't see an addressable question here.
  • networkauth not found in qt c++

    Unsolved google api network networkauth
    13
    0 Votes
    13 Posts
    2k Views
    JoeCFDJ
    @MEsc Check Archive and then press Filtern button. You will get all the stuff of 6.4.0. Sorry. you are doing on Windows. Things could be different.
  • 0 Votes
    3 Posts
    388 Views
    Christian EhrlicherC
    Even the topic is old I think the problem was fixed with KB5022282 on January, 10th 2023.
  • Difficulty locating QT SDK directory

    Unsolved
    1
    0 Votes
    1 Posts
    173 Views
    No one has replied
  • Byteordermark is not set in *.csv file

    Unsolved
    7
    0 Votes
    7 Posts
    575 Views
    JonBJ
    @hkottmann said in Byteordermark is not set in *.csv file: Rapidcsv was the evildoer But how did this differ between Qt versions, 5 vs 6?
  • Can't get rid of spacing between two widgets in QSplitter

    Unsolved
    3
    0 Votes
    3 Posts
    489 Views
    qwasder85Q
    @Chris-Kawa I guess I should put the left widget outside of the splitter. Thanks.
  • QGraphicsView changes on scene does not reflect

    Unsolved
    15
    0 Votes
    15 Posts
    1k Views
    JonBJ
    @masa4 said in QGraphicsView changes on scene does not reflect: ui->graphicsView->centerOn(ui->graphicsView->x()/2,ui->graphicsView->y()/2); But image still not centered. @JonB said in QGraphicsView changes on scene does not reflect: For your actual code (a) it's not what I suggested to use and (b) I don't know what you expect it to do. I already wrote the above previously.
  • listing values in QByte

    Solved
    25
    0 Votes
    25 Posts
    4k Views
    A
    @JonB @jsulm @Christian-Ehrlicher @mpergand thanks for your help, i appreciate you
  • Segmentation fault calling QOpenGLContext::create()

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    R
    @jsulm , thank you very much! And thank you, @Christian-Ehrlicher , very much as well!