Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.1k Topics 454.7k Posts
QtWS25 Last Chance
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Adding build date to linux project

    Solved
    12
    0 Votes
    12 Posts
    2k Views
    SPlattenS
    I will be abandoning the exploration of creating a definition from the system date and instead use DATE and TIME. How do I prevent the editor from changing the text on the date and time fields?
  • Writing data of type QVector<QVector<QString>> into a text file

    Solved
    4
    0 Votes
    4 Posts
    302 Views
    ashajgA
    @KroMignon @aha_1980 Its working.. Thanks for help!!!
  • QSerialPort::open occassionally hangs before success

    Unsolved
    6
    0 Votes
    6 Posts
    836 Views
    K
    @aha_1980 said in QSerialPort::open occassionally hangs before success: Resp. the corresponding Windows driver. I'd search the vendors web page for updated drivers first. Usually, the MCU's FW provides the USB CDC stack. So, for this, the Windows (as and Linux) contains the standard drivers. IMHO, need to check the FW sources which related to handling of CDC-class callbacks and etc (maybe there are present some 'get stucks', like the sleep() calls or something else).
  • How to show a tool tip when a QLabel is clicked or pressed?

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    Pradeep P NP
    Hi @ManiRon Few reference examples hope these will help : QT - How to apply a QToolTip on a QLineEdit. Tool Tips Example All the best
  • Qt Tools and Versions & MSVC 2019

    Unsolved
    39
    0 Votes
    39 Posts
    57k Views
    V
    @volker Done. Request can be found under following link
  • Can't use vtk charts in QT, "no override found for 'vtkContextDevice2D"

    Unsolved
    1
    1 Votes
    1 Posts
    500 Views
    No one has replied
  • webassembly

    Unsolved
    4
    0 Votes
    4 Posts
    391 Views
    sierdzioS
    I don't know, I have not tried it yet.
  • WebAssembly - 'QtQuick.Shapes' could not be loaded successfully

    Solved
    6
    0 Votes
    6 Posts
    873 Views
    J
    @lorn.potter said in WebAssembly - 'QtQuick.Shapes' could not be loaded successfully: It seems that they should work on wasm builds. Here is a change to enable them: https://codereview.qt-project.org/c/qt/qtdeclarative/+/266295 Just a quick update that this works now with the change indicated above. Starting to love QT+WASM. Thanks for your help @lorn-potter
  • Promoting QWidget to custom class and Q_PROPERTY

    Solved
    2
    0 Votes
    2 Posts
    314 Views
    J.HilkJ
    @fcarney I don't think so, as QtDesigner does not even show all Q_Properties of the standard widgets!
  • Getting NumLock and keyboard numeric keypad to work for button presses.

    Unsolved
    1
    0 Votes
    1 Posts
    665 Views
    No one has replied
  • Trying to rename a file

    Solved
    3
    0 Votes
    3 Posts
    558 Views
    C
    There is no mention of the script in the .pro file. A grep search of the CodeBase for WizardPopupKeyboard returns: QML.qrc and qrc.QML.cpp. Both of these files contain a reference to WizardPopupKeyboard. Rather than start messing around with names in those folders I decided instead to create a new .qml file called WizardPopupNumericKeyboard.qml and copied the contents of WizardPopupKeyboard into that file, that seems to have worked.
  • QAudioFormat do not support sample rate 16000

    Solved
    2
    0 Votes
    2 Posts
    441 Views
    SGaistS
    Hi, What about using something like libsamplerate ? This will allow you to resample your audio data before feeding them to pocketSphinx.
  • Q3DSurface how to remove axis labels and grids?

    Unsolved
    3
    0 Votes
    3 Posts
    947 Views
    M
    No I didn't find a solution. Thanks very much for the suggestions. In the end I implemented my own 3D balloon plotting QT widget which renders in openGL.
  • Advice please on application design

    Unsolved
    3
    0 Votes
    3 Posts
    357 Views
    Tom assoT
    @JKSH - very useful, thanks!
  • Audio duration for file manager

    Unsolved
    20
    0 Votes
    20 Posts
    2k Views
    N
    @jsulm said in Audio duration for file manager: @Nemooo said in Audio duration for file manager: The result is the same - doesn't fill the last column Yes, because you need to take the correct index now instead of 0. May be this way? void MainWindow::CreateTable(const QString & p) { filemodel->removeRows( 0, filemodel->rowCount() ); filemodelcurrentdir = QDir(p).path(); files = QDir(p).entryInfoList(QDir::Dirs | QDir::Files | QDir::NoDotAndDotDot); int in = 0; foreach(const QFileInfo &fi, files) { QString name = QString("%0").arg(fi.fileName()); filemodel->insertRow(in); if (fi.isDir()) { filemodel->setData(filemodel->index(in, 0), name); filemodel->setData(filemodel->index(in, 0), dirIcon, Qt::DecorationRole); } else { filemodel->setData(filemodel->index(in, 0), name); filemodel->setData(filemodel->index(in, 0), fileIcon, Qt::DecorationRole); filemodel->setData(filemodel->index(in, 1), size_human(fi.size())); } ++in; } in = 0; foreach(const QFileInfo &fi, files) { QString name = QString("%0").arg(fi.fileName()); if (!fi.isDir()) { QMediaPlayer* player = new QMediaPlayer(); player->setMedia(QUrl::fromLocalFile(filemodelcurrentdir + "/" + name)); auto index = filemodel->index(in, 2); connect(player, &QMediaPlayer::durationChanged, this, [this, index](qint64 dur) { filemodel->setData(index, QString().setNum(static_cast<double>(dur)/60000.0)); }); delete player;} ++in; } filemodel->setHeaderData(0,Qt::Horizontal,QObject::tr("Name" )); filemodel->setHeaderData(1,Qt::Horizontal,QObject::tr("Size" )); filemodel->setHeaderData(2,Qt::Horizontal,QObject::tr("Duration" )); pTreeView2->setSortingEnabled(true); pTreeView2->setColumnWidth(0, 300); pTreeView2->setColumnWidth(1, 100); pTreeView2->setColumnWidth(2, 100); }
  • Weird warning message, it makes no sense

    Solved
    14
    0 Votes
    14 Posts
    1k Views
    Pablo J. RoginaP
    @Guerrian if your issue is solved, please don't forget to mark your post as such. Thanks.
  • How to send json-file to the address?

    Solved
    21
    0 Votes
    21 Posts
    2k Views
    M
    It looks like the bug of websocket. I connect to other web sites.
  • How to connect to websocket ?

    Solved
    5
    0 Votes
    5 Posts
    410 Views
    M
    Okey, I will consider
  • Implementing a reflective object in Qt 3D C++

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