Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • QGlib::Value::set: Unable to handle value type "gchararray".

    Unsolved
    1
    0 Votes
    1 Posts
    150 Views
    No one has replied
  • How to achieve a blurred background

    Solved
    6
    0 Votes
    6 Posts
    7k Views
    S
    @Chris-Kawa Hi, can you post a small example to get this feature please? Or can you tell me where I should go to look for more about that? Thank you
  • Converting image to RGB16 in array

    Unsolved
    6
    0 Votes
    6 Posts
    398 Views
    SGaistS
    Never done what ?
  • How to link (FTDI)d2xx library to qt project?

    Unsolved
    2
    0 Votes
    2 Posts
    422 Views
    SGaistS
    Hi, If using Qt Creator, you have a wizard to help you.
  • MDI Area Ghosting

    Unsolved
    1
    0 Votes
    1 Posts
    186 Views
    No one has replied
  • Get the correct date days passed after current date

    Solved
    9
    0 Votes
    9 Posts
    952 Views
    HolidayH
    @JonB Thanks for help. Yes, the main question in my problem was: what we mean by "days". 24 hour or days between midnight. When I found an answer on this question, I found a solution. Huge thanks everyone for help!
  • Instantiate a constructor with QObject *objectParent as the default parameter?

    Solved
    4
    0 Votes
    4 Posts
    313 Views
    C
    There we go, got it to work now by adding = nullptr to the TestClass constructor like this: TestClass(QObject * objectParent = nullptr) Thanks so much.
  • QSerialPort can't handle custom baud rate of 500K??

    Unsolved
    9
    0 Votes
    9 Posts
    696 Views
    E
    The problem was with my Arduino code. I have modified it and it now works even at 500K baud rate!
  • This topic is deleted!

    Unsolved
    3
    0 Votes
    3 Posts
    18 Views
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    16 Views
  • Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll

    Solved
    4
    0 Votes
    4 Posts
    3k Views
    Christian EhrlicherC
    @sierdzio told you to inspect the backtrace!
  • This topic is deleted!

    Solved
    3
    0 Votes
    3 Posts
    15 Views
  • QGraphicsView using QOpenGLWidget as viewport, bad text rendering

    Solved
    4
    0 Votes
    4 Posts
    597 Views
    A
    @closer_ex They added a lot of highly expensive Q_ASSERT-statements sometime in Qt 5. That might be the cause of high CPU usage. EDIT: You can verify that by defining your own Q_ASSERT and Q_ASSERT_X macros before including the first Qt header file.
  • Can't get QSettings to write my settings properly

    Solved qsettings c++ config file font font family
    14
    0 Votes
    14 Posts
    2k Views
    R
    I fixed this by setting QFont font = this->font(); to ui->appName->font(); in case anyone comes across this.
  • memory leak width QPainter/QPrinter

    Unsolved qpainter qprinter memory leak
    18
    0 Votes
    18 Posts
    4k Views
    AaronCA
    @Christian-Ehrlicher Thanks for tracking that down. Hope Qt gets it fixed soon.
  • VLD output error

    Solved
    5
    0 Votes
    5 Posts
    623 Views
    H
    @Christian-Ehrlicher Ohhhhh! It works! I replaced all the function malloc() in my code, then the output of VLD went back to a normal value. THANKS A LOT!!!
  • readyRead() signal behavior

    Solved
    7
    0 Votes
    7 Posts
    823 Views
    E
    @eyllanesc the problem was my Arduino. I simplified it just to test and based on your suggestion and now it is working properly even at 500K baud: Arduino code: char buffer[16]; void process(); void setup() { Serial.begin(500000); } void loop() { process(); } void process() { while (Serial.available() > 1) { Serial.readBytesUntil('\n', buffer, 16); Serial.println(buffer); } }
  • Main GUI thread stops when worker thread is invoked using Qt::QueuedConnection

    Unsolved
    11
    0 Votes
    11 Posts
    775 Views
    kshegunovK
    @CJha said in Main GUI thread stops when worker thread is invoked using Qt::QueuedConnection: I thought if I put the priority as QThread::LowPriority for one instance and QThread::HighPriority for the other then Qt will make sure that one with higher priority gets the resources whenever it requires regardless of how long the threads with lower priority are waiting? If this is not the situation then why do we have different priorities in the first place? This is not Qt-specific. On a multitasking system the priority of process or thread determines the timeslices it gets from the OS's scheduler. However, there are so many cores on a system, you can't get performance out of nothing. That's why if you're going to crunch numbers, you want to have a number of threads equal to the number of cores, so each thread runs on its own core as much of the time as possible without being interrupted. Having more threads than cores, contrary to (the layman) popular belief, doesn't produce better performance, it can get you some latency benefit if the cores are not busy, otherwise it's an overhead for the scheduler to slice and rebalance the time slots. That's why you have priorities - to "hijack" latency from other threads/processes running on that system, but again this doesn't mean your code is going to be running faster. @CJha said in Main GUI thread stops when worker thread is invoked using Qt::QueuedConnection: Most of the people on forums and blogs suggest subclassing QObject and use moveToThread() instead of subclassing QThread and implementing its run method, why do you suggest differently? Is there a catch? Yes, that's correct. For the general case this is best. If you want to squeeze out the most of the hardware however you're going to want to remove the pesky overhead that comes with this. That's "the catch" - having/choosing the correct tool for the job at hand. Never heard of TS queue, I will try to learn about it. That's a "thread-safe queue" so you don't get the wrong idea.
  • QBluetoothTransfer not sending File

    Unsolved
    2
    0 Votes
    2 Posts
    170 Views
    SGaistS
    Hi, From the QBluetoothTransferManager::put documentation: If the platform does not support the Object Push profile, this function will return 0.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied