Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Sending data to serial

    Unsolved
    6
    0 Votes
    6 Posts
    662 Views
    S
    @JonB hey sorry didnt receive a notification of the reply. I dont know if my computer was acting up but everytime I ran the build I had to open and close the port with puyty then run the build. then the code worked. very weird.
  • QSerialPort outside main function not working

    Unsolved
    11
    0 Votes
    11 Posts
    695 Views
    J
    @Christian-Ehrlicher Yes i'am sure there is data coming
  • Undefined symbols for arm64

    Unsolved
    16
    0 Votes
    16 Posts
    4k Views
    V
    @JonB said in Undefined symbols for arm64: @vcasado said in Undefined symbols for arm64: project(BLETester VERSION 1.1 LANGUAGES CXX) I'm purely guessing, but chage this? E.g. ... LANGUAGES CXX C? Fixed with this! Thank you!
  • QListView ScrollToBottom doesn't scroll to the very end

    Unsolved
    8
    0 Votes
    8 Posts
    2k Views
    SGaistS
    When you add data, there's a begin/endInsertRows pair of function that you should call. Their a responsible for notifying the view that things are changing with regard to the amount of the data.
  • How to use open street map offline

    Unsolved
    2
    0 Votes
    2 Posts
    214 Views
    Kent-DorfmanK
    what you are asking is pretty major: how to write a program to do such and such. You need to be more focused on your requests so that people see you're making some effort on your own. Have you researched your task using internet search engines? How much time have you spent reading about online map services and how they work?
  • Two connect function

    Unsolved
    3
    0 Votes
    3 Posts
    310 Views
    Kent-DorfmanK
    @apoyo Maybe you have agood reason, but the larger question is why would you even use the winsock functions when Qt provides parallel socket handling functions? I mean, you asked on Qt desktop forum, so presumably you are doign a QtWidgets applications, right?
  • Dynamic mem allocation in local scope okay?

    Unsolved
    2
    0 Votes
    2 Posts
    188 Views
    JonBJ
    @Loquat said in Dynamic mem allocation in local scope okay?: QState *state = new QState(parent); The local variable state goes out of scope and is destroyed. The new QState created object persists. The "magic" of any class derived from QObject which is created via new QState(parent) is that it gets attached to its parent QObject and when that is destroyed its code destroys its children too. So you don't leak. Read Object Trees & Ownership.
  • Insert list in Word documment using qaxobject

    Unsolved qaxobject qaxwidget documentation
    5
    0 Votes
    5 Posts
    913 Views
    R
    Thank you Chris. I solved it by generating a text file with instructions in vbscript and executing it afterwards. With this variant I can manipulate word documents more easily but it only works for Windows. It's not that efficient but I have a lot more documentation for working with word.application in vbscript. I reiterate my thanks for answering me so quickly.
  • Online installer crashes with "Forbidden" message

    Solved
    3
    0 Votes
    3 Posts
    386 Views
    K
    @jsulm, Thank you. It helped.
  • This topic is deleted!

    Solved
    2
    0 Votes
    2 Posts
    28 Views
  • how to disable structure padding in qt uisng mingw

    Solved
    5
    0 Votes
    5 Posts
    639 Views
    P
    @jsulm Thank you ! In my case this structure is auto - generated from a json file using some script. That is the challenge here- manually adding pragma to those auto generated structures.
  • 0 Votes
    4 Posts
    741 Views
    M
    I think i found the problem. I use QBytearray to pass the data i receive from USB to the rest of the application. In my other applications i directly cast the underlying memory to whatever struct_t is being passed. Instead, in this case, for whatever reason, i converted the data directly uint32_t size; size = data.at(3); size = (size * 256) + data.at(2); size = (size * 256) + data.at(1); size = (size * 256) + data.at(0); which of course should have been uint32_t size; size = (uint8_t)data.at(3); size = (size * 256) + (uint8_t)data.at(2); size = (size * 256) + (uint8_t)data.at(1); size = (size * 256) + (uint8_t)data.at(0); 🙄 The data being received is a variable length array for which the size is currently capped at 256, and i'm currently requesting it at a high enough rate that less than 128 entries are received, given that the timer that requests the data is still in the GUI thread, whenever i click on the button or move around the window (also would explain while it happened very rarely in that case) the timer event is delayed, but only enough that i receive between 128 and 256 entries... and voilà. getting a signed char from QByteArray, which gets sign extended to 32bit and gets stored as an unsigned 32bit variable.
  • Unable to edit item in QTreeView on double click

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    ScleaverZer0neS
    @JonB I had not set edit triggers on my treeview, that's why I was not able to edit the cells on double click. Setting edit triggers solved that issue. Thanks.
  • can not send/receive data while client and server are running on two different PCs.

    Unsolved
    13
    0 Votes
    13 Posts
    876 Views
    J
    @JonB Thank you for your help! The problem was caused by the lack of my basic understanding of QTcpSocket and I will study harder ^_^
  • From QT-COM Create IDL from DLL.

    Moved Unsolved
    7
    0 Votes
    7 Posts
    580 Views
    hskoglundH
    Hi, to make sure the DumpIDL symbol is present in the .dll, open a MSVC2017 CMD window: dumpbin /exports "C:\Users\....\QtComSupportDll.dll" DumpIDL should be seen.. Also the Qt examples like ActiveQt simple, it's an .exe not a .dll but it also uses a .DEF file to include the DumpIDL symbol. If you build it, does idc.exe work on it?
  • QT with AMQP-CPP library

    Solved
    14
    0 Votes
    14 Posts
    2k Views
    M
    @JonB QSocketNotifier fires until there is data to read on the socket. Marking this as solved.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    10 Views
    No one has replied
  • Hiding the cursor on QLineEdit

    Solved
    9
    0 Votes
    9 Posts
    1k Views
    J
    @mpergand @Pl45m4 amazing! thank you both :D
  • QMetaObject::invokeMethod() problem

    Unsolved
    10
    0 Votes
    10 Posts
    1k Views
    Chris KawaC
    @Perdrix Ah yes, inherited code. The bane of all existence :) Well, auto connection should work as you want. It will do a direct function call when in the same thread, so it doesn't matter that the event loop is blocked.