Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • QProcess revisted...

    Solved
    5
    0 Votes
    5 Posts
    384 Views
    SPlattenS
    @JonB , found the issue, stupid but you have to add --databases to the command line.
  • How to parse QString

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    J
    Thank you.
  • QT internal functions are using high CPU when Application is Idle.

    Unsolved
    4
    0 Votes
    4 Posts
    284 Views
    V
    Hi Kent, Is their any way where we can increase and decrease the QT internal timer so that its give a buffer in between that?
  • put "readAllStandardOutput()" result in Qstring variable

    Solved string
    3
    0 Votes
    3 Posts
    653 Views
    J
    right ! my mistake !thanks
  • QProcess not working.

    Solved
    29
    0 Votes
    29 Posts
    4k Views
    SPlattenS
    @JonB I will investigate now.
  • This topic is deleted!

    Unsolved
    3
    0 Votes
    3 Posts
    34 Views
  • Qt::opcua Rpi

    Solved
    2
    0 Votes
    2 Posts
    327 Views
    M
    data, time, and timezone must be the same on RPI and kepware OPC server :P.
  • libmysqlclient.so mismatch on fedora 33

    Solved
    5
    0 Votes
    5 Posts
    407 Views
    jsulmJ
    @ocgltd said in libmysqlclient.so mismatch on fedora 33: Is this a bug? No, it just means that Qt MySQL plug-in was built using older MySQL version...
  • QFileDialog and network resources

    Unsolved
    3
    0 Votes
    3 Posts
    398 Views
    SPlattenS
    @Kent-Dorfman , thank you, I've noticed that when I use QFileDialog::getExistingDirectory which I use elsewhere, this does include all the locations that are missing from the instance created with QFileDialog, sorry I missed the way I an invoking the original is just with show.
  • How top place a Image incide a custom dial without using Qml

    Solved
    10
    0 Votes
    10 Posts
    610 Views
    J
    @mrjj I got the output bro... Thankyou ...
  • Qt Charts can not set point to point line Series?

    Unsolved
    1
    0 Votes
    1 Posts
    124 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    10 Views
    No one has replied
  • std::filesystem crashes my app

    Unsolved
    11
    0 Votes
    11 Posts
    1k Views
    H
    @SGaist Are you starting it ? The command line ? from Qt Creator
  • Converting QByteArray to QString

    Unsolved qbytearray qstring qprocess
    13
    0 Votes
    13 Posts
    11k Views
    C
    @Sina-Ranjkesh-zade said in Converting QByteArray to QString: For "standard input" if you mean input arguments of the process, I got this error: No, I meant standard input. That is , the python program reads from a terminal and accepts input just as if you typed it (except it is the Qt program sending that input). The Qt program can send a command to the python program, send the data it needs, and read the result (if there is one) back on the python program's standard output. Or you can used shared memory, or a socket, or files, or do whatever the python program is doing in the Qt program...
  • QDataStream and long double

    Unsolved
    4
    0 Votes
    4 Posts
    343 Views
    Kent-DorfmanK
    AUTOSAR-A0-4-2 rule for safety critical c++ applications: Type long double shall not be used. The width of long double type, and therefore width of the significand, is implementation defined.
  • Qt Debug Symbols

    Unsolved
    2
    0 Votes
    2 Posts
    342 Views
    Chris KawaC
    As the name and description suggest - installs debugging symbols (pdb files on Windows) that you can use to debug Qt Creator itself.
  • I would need someone to teach me some things about QScrollArea.

    Unsolved
    6
    0 Votes
    6 Posts
    296 Views
    SGaistS
    I gave you the full chain of inheritance back to QWidget. Yes you can put a layout on an QScrollArea. As already said by @Pl45m4, it's not what you do when you want to use QScrollArea to manage a widget bigger than for example the screen. Still, there might be cases where putting something in a layout on a QScrollArea could make sense. However I do not have an example at hand.
  • QAudioDecoder not emitting signals

    Solved
    3
    0 Votes
    3 Posts
    261 Views
    D
    okay turns out i wasn't creating the thread correctly. when i switched to "worker thread" style as explained here, it all started working. :)
  • QLayouts in a QScrollarea

    Unsolved
    4
    0 Votes
    4 Posts
    315 Views
    C
    @SGaist thanks for that. It's just an example you know. But all the same, I will keep this in mind.
  • working example of QMessage

    Unsolved
    4
    0 Votes
    4 Posts
    427 Views
    B
    As a general point, I prefer using usual C++ std::string (they all are UTF8 encoded), or C const char* string (UTF8). The reason is more political than technical: I am afraid that in 2021, funding agencies prefer Web interfaces to Qt ones (on desktops or laptops) for software having several human users at once. Also, RefPerSys being today a research project, efficiency is not a priority, and losing CPU time in lots of std::string to QString conversion (and vice versa) is now (july 2021) acceptable. Our long term vision is to generate C++ code (from our higher-level declarative formalism, expert system like). Ideally, like Pitrat explains in his Artificial Beings: the Conscience of a Conscious Machine book (ISBN 978-1848211018), we want to generate all the C++ code of RefPerSys. Of course, that is an ambitious goal, and we are very far from it. Sadly, in july 2021, we have very few generated C++ lines. BTW, Jacques Pitrat was the director of my PhD jury, defended in Paris in 1990. The local variable obshowstring is declared as std::string obshowstring in file tempgui-qrps.cc, for commit 7fa10ba9cd62 in line 331 Regards, and thanks for your help. Basile Starynkevitch - near Paris in France PS. Off-topic: I am interested in any HorizonEurope submission which could fund RefPerSys. The RefPerSys website mentions some potential calls (e.g. HORIZON-CL2-DEMOCRACY-2022-01-01, HORIZON-CL2-DEMOCRACY-2022-01-05, HORIZON-CL2-DEMOCRACY-2022-01-06, HORIZON-CL2-HERITAGE-2022-01-03, HORIZON-CL2-HERITAGE-2022-01-04, HORIZON-CL2-HERITAGE-2022-01-06, HORIZON-HLTH-2021-STAYHLTH-01-02, HORIZON-HLTH-2022-STAYHLTH-01-01, HORIZON-HLTH-2022-STAYHLTH-01-04, HORIZON-HLTH-2022-STAYHLTH-02-01 but there could be others. Contact me then by email to both basile@starynkevitch.net (personal email) and to basile.starynkevitch@cea.fr (professional email at CEA LIST)