Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • QtScript. The future in Qt 6.0.

    Solved
    5
    1 Votes
    5 Posts
    1k Views
    J
    Yup it's definitely dead. I was more curious if the OP found a way to use QJSEngine instead. Last time I checked (years ago) this wasn't a full replacement for QtScript, with no solution to expose existing c++ object to the scripts
  • Which helper I can use to split this string?

    Unsolved
    10
    0 Votes
    10 Posts
    989 Views
    SGaistS
    Hi, Just in case, there's a Qt wrapper for libyaml that might be easier to use. One thing that is not clear is why do you need the string representation to know how to deserialise the block ? Usually, you structure should be well defined and thus you should either have the name of the mapping allowing to know what is inside it and thus use a dedicated function to extract the data you want or you should have a specific field in your structure that will again allow you to know to which function you want to send it for further processing.
  • Opening QVitualKeyboard automatically when opening a popup window

    Unsolved virtualkeyboard c++
    1
    0 Votes
    1 Posts
    311 Views
    No one has replied
  • Issue receiving data weighing scale Ohaus aviator 7000

    Solved qserialport c++
    3
    0 Votes
    3 Posts
    546 Views
    Y
    The issue was that it had to be byte \x05 and QByteArray.setnum(5) will result in \x35 so I had to use QByteArray::append()
  • Setting first page after application lunch

    Solved
    2
    0 Votes
    2 Posts
    198 Views
    L
    @LT-K101 I figured it out by placing my sql query just below def __init__(self):
  • SQLite create table does not work when inserting variable into query

    Solved
    3
    0 Votes
    3 Posts
    400 Views
    iwoitheI
    @ChrisW67 It works. Thank you. :) but only if you are 100% certain the value in value.at(2) cannot be subverted by the user (security risk). The id (value.at(2)) is set in C++ and there is no way for the user to adjust this value.
  • Size Reserve in Type Conversion

    Unsolved
    8
    0 Votes
    8 Posts
    601 Views
    C
    @Zeyad-Khaled said in Size Reserve in Type Conversion: The Huffman Function Returns string in 0's and 1's If this routine returns a string of '0' and '1' characters, e.g. "01011101...", then your best course of action would be to write, find, or adapt an implementation that returns a bunch of bytes (QByteArray). In the case of the example the first byte in the array should be 0x5D.
  • vector<uint8_t> File saving

    Solved
    6
    0 Votes
    6 Posts
    637 Views
    Christian EhrlicherC
    @Zeyad-Khaled You already found QFile::write() - so why can't you pass the pointer and length to this function? Don't see what this has to do with Qt...
  • Reload specific tab PYQT5

    Unsolved
    4
    0 Votes
    4 Posts
    407 Views
    SGaistS
    Which approach do you want to use ?
  • 0 Votes
    6 Posts
    876 Views
    JonBJ
    @Madhavi said in showMessage and updating progress bar, emitting signals even after splash screen is gone when using connect().: while(list of dll's) Any loop like this will block. You emit messages but do not allow the Qt event loop to run. Hence @mpergand's suggestion.
  • MacOs 12.0.1 problems with QtBluetooth

    Unsolved
    1
    0 Votes
    1 Posts
    343 Views
    No one has replied
  • Boost.Asio vs QSslSocket. Which to use?

    Unsolved
    5
    0 Votes
    5 Posts
    687 Views
    B
    @Pablo-J-Rogina appreciate your reply. Good point. Thx a lot. Boost.Asio for me for cross-platform is Ok. I've got written Bash script that is building Boost.Asio for any platform. If anyone want, you might be using it https://github.com/ArboreusSystems/arboreus_bash_library/tree/master/Prebuild
  • QSqlRelationalTableModel removeRows or deleteRowFromTable?

    Unsolved c++ sql
    4
    0 Votes
    4 Posts
    770 Views
    S
    Hi @JonB yes the selects are used as you've described. While waiting for answers I refound QxORM via Inqlude which looks like it has a soft deleted option so may more than do what I require. Thanks for the response
  • Setting non extractable private key in QWebSocket for mutual TLS on macOS

    Unsolved qwebsocket tls
    1
    0 Votes
    1 Posts
    356 Views
    No one has replied
  • Linux install Qt 5.15 from package

    Solved linux desktop package
    7
    0 Votes
    7 Posts
    5k Views
    JonBJ
    @Drazz If yours was meant sarcastically --- I don't know if it was --- mine was not, and not meant rudely. I meant: since it is unlikely you can alter what is in the online package, you might like to know that you could delete Creator --- presumably to free up disk space --- after it gets downloaded/installed, which is probably the only way of not having it around.
  • QRadioButton, calling setChecked doesn't emit a signal

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    JonBJ
    @SPlatten said in QRadioButton, calling setChecked doesn't emit a signal: , I have a slot connected to clicked: ? But I said the signal is toggled(), not clicked().
  • 0 Votes
    2 Posts
    2k Views
    jsulmJ
    @Bart_Vandewoestyne said in /lib64/libstdc++.so.6: version &#x60;CXXABI_1.3.8' not found (required by ./libQt3Something.so.4): what can we do so that our Qt 4.8.7 application that we currently build on Debian 9 also works on an older Red Hat Enterprise Linux 7.2 system? Build it on Red Hat Enterprise Linux 7.2
  • QPixmap variable wont update when drawing

    Unsolved
    6
    0 Votes
    6 Posts
    411 Views
    Christian EhrlicherC
    Please provide a minimal, compilable example - your code above looks fishy, esp. the pointer comparision but otherwise ok so there must be a problem somewhere else.
  • Getting "XL_ERR_QUEUE_IS_EMPTY" when connecting to Vector VN1630A

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    S
    @aha_1980 hi, aha_1980, the topic you metioned is posted by me , hahaha . And you can see my latest comment in the topic to know why the queue is empty. In conclude, when receiving can fd message, Qt use wrong way to parse it . You can see following code in startRead() in vectorcanbackend.cpp in Qt source file. Wrong usages: QCanBusFrame frame(**msg.id** & ~XL_CAN_EXT_MSG_ID, frame.setTimeStamp(QCanBusFrame::TimeStamp::fromMicroSeconds(event.timeStamp / 1000)); frame.setExtendedFrameFormat(**msg.id** & XL_CAN_RXMSG_FLAG_EDL); frame.setFrameType((**msg.flags** & XL_CAN_RXMSG_FLAG_RTR) ? QCanBusFrame::RemoteRequestFrame : (**msg.flags** & XL_CAN_RXMSG_FLAG_EF) ? QCanBusFrame::ErrorFrame : QCanBusFrame::DataFrame); Correct usages: QCanBusFrame frame(**msg.canId** & ~XL_CAN_EXT_MSG_ID, frame.setTimeStamp(QCanBusFrame::TimeStamp::fromMicroSeconds(event.timeStampSync / 1000)); frame.setExtendedFrameFormat(**msg.canId** & XL_CAN_RXMSG_FLAG_EDL); frame.setFrameType((**msg.msgFlags** & XL_CAN_RXMSG_FLAG_RTR) ? QCanBusFrame::RemoteRequestFrame : (**msg.msgFlags** & XL_CAN_RXMSG_FLAG_EF) ? QCanBusFrame::ErrorFrame : QCanBusFrame::DataFrame); BRs//Hengtai
  • How best to create a repeating animation?

    Solved
    3
    0 Votes
    3 Posts
    234 Views
    idlefrogI
    @SGaist Oh!... yes! I thought there had to be a better way. Thank you very much!. Most helpful!!!! Thankyou!