Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.5k Posts
  • Is it possible to set indent for QTextEdit's markdown content

    Unsolved
    4
    0 Votes
    4 Posts
    489 Views
    M
    Turns out that it is possible, it is defined under the document member variable of QTextEdit: ui->textEdit->document()->setIndentWidth(10);
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • can i hide/delete this red part?

    Unsolved
    3
    0 Votes
    3 Posts
    266 Views
    Ronel_qtmasterR
    @piercashuang setWindowFlags(Qt::FramelessWindowHint);
  • QMAKE_EXTRA_COMPILERS adds file to OBJECTS

    Unsolved
    3
    0 Votes
    3 Posts
    231 Views
    C
    Further to @SGaist's suggestion, there is c_repc_source.variable_out that might be worth a look.
  • Access video frames from QMediaPlayer to apply online/ofline image filters to frames

    Unsolved
    2
    0 Votes
    2 Posts
    269 Views
    SGaistS
    Hi, You should go with Qt6, the new QtMultimedia module is better suited for what you want to do. Check the QVideoSink class and friends.
  • Commenting out "connect"

    Unsolved
    3
    0 Votes
    3 Posts
    290 Views
    Christian EhrlicherC
    I mean - what do you expect?
  • Qt Widgets 6 WebAssembly Theme

    Unsolved
    2
    0 Votes
    2 Posts
    184 Views
    SGaistS
    Hi, You can create a custom QStyle as shown in this example.
  • Qt 5.12 Unable To Get Touch Events

    Unsolved touch touch screen touchscreen mouse press mousepressevent
    4
    0 Votes
    4 Posts
    1k Views
    Axel SpoerlA
    @Christian-Ehrlicher Done, Sir :-) I was just not sure, whether the fix happened in 5.15 or 6.2. The latter it is.
  • CMake +Qt6 +lupdate

    Solved cmake linguist
    13
    0 Votes
    13 Posts
    4k Views
    ekkescornerE
    @kkoehne said in CMake +Qt6 +lupdate: cool - sounds to become easier and more flexible in 6.7. will test with beta2 And the NATIVE_TS_FILE option only will actually appear in Qt 6.7: https://doc-snapshots.qt.io/qt6-dev/qtlinguist-cmake-qt-add-translations.html I'm developing always in english, where in most cases german is used by customers. Because I'm writing code in 'developer-english' it may happen, that customer requests to change a translation. for these cases and to handle plural forms I always also add an en ts file, so I'm using .ts / _de.ts / _en.ts / _fr.ts ... this is working well because translations not found in _en.ts will come from .ts seems that in this case I don't have to set the NATIVE_TS_FILE, because _en.ts not only contains plural forms ? if setting QT_I18N_LANGUAGES will this work if my (from Qt 5.15 ported) .ts files are in project_dir/translations ? BTW: the lrelease command is executed automatically if building in QtCreator ? In 5.15 my workflow was: lupdate, Linguist, lrelease Now in 6.7 I can do lupdate automatically with add_dependencies(...lupdate) or execute manually with CMD-K cm ...lupdate and lrelease is always done automagically ?
  • How to get Qt Version from builded application?

    Unsolved
    3
    0 Votes
    3 Posts
    345 Views
    W
    @TomNow99 Not sure about Windows, but on Linux it's just: nm myApp | grep Qt_6 > /dev/null echo $? If it prints 0, it's a Qt 6 program, 1 otherwise.
  • Yocto Qt6 run QML app

    Unsolved
    2
    0 Votes
    2 Posts
    320 Views
    K
    @MartinD Did you solve it? I've got the same problem on Rpi CM4...
  • Send attachment by email

    Solved
    27
    0 Votes
    27 Posts
    5k Views
    JonBJ
    @Long-Vu-Ngoc I know, I saw it. Stick to that, you won't get any more help from here.
  • No functional TLS backend was found error

    Unsolved
    2
    1 Votes
    2 Posts
    588 Views
    JonBJ
    @Rozerchik Start by Googling for: qt.network.ssl: No functional TLS backend was found. There are quite a few topics. Have a read, see if any of them apply to your situation?
  • Qt6 QImage never loads image but Qt5 worked

    Solved
    7
    0 Votes
    7 Posts
    469 Views
    Christian EhrlicherC
    @whatabout said in Qt6 QImage never loads image but Qt5 worked: Was this the case with qt5? Maybe, maybe not - it depends on how you installed your Qt. Qt5 was modularized already in the Qt installer but Qt6 gets even more splitted to reduce the installation footprint so yes it might be the case.
  • What percentage of users have Qt6?

    Solved
    15
    0 Votes
    15 Posts
    989 Views
    V
    @whatabout "because what you say is illogical." Well, then don't read the source if you don't believe me. I can just tell you that Liviu do it exactly like I wrote (and like it is also written in the Qt documentaion). When you think it is illogical, then don't do it and code only for Qt5 (or Qt6) - like you want. We code Qt 5 and Qt6 at the same time. It is easy.
  • Pure virtual interface for signal and slots leads to amibigiuos connect method

    Solved
    19
    0 Votes
    19 Posts
    2k Views
    J.HilkJ
    @SiGa you can just use the topic tools and set the whole topic to solved
  • QSerialPort::readyRead couldn't connect to my slot.

    Solved
    4
    0 Votes
    4 Posts
    279 Views
    E
    @jsulm Oh, this is stupid mistake. I'm tired and I can't see anything in front of me. Very grateful to you!
  • Smooth QTableView when periodically adding new data

    Unsolved
    2
    0 Votes
    2 Posts
    270 Views
    M
    @tilz0R Yeah, tableView/treeView are notoriously slow in this area. In a case similar to yours, https://forum.qt.io/post/551198 I used a timer to update the view only a few times per second, not each time some data arrived: // constructeur DumpTreeModel(QTreeView* tree) : TreeItemModel(), _treeView(tree) { connect(this, &QAbstractItemModel::rowsInserted,this, &DumpTreeModel::rowsInserted); /** https://bugreports.qt.io/browse/QTBUG-61763 * QTreeView updates slow down with increasing delay if scrollToBottom is used */ _timer.setInterval(200); _timer.start(); connect(&_timer, &QTimer::timeout, [this] () { static int count=0; int rows=rowCount(QModelIndex()); if(count<rows AND _scrollToBottom) _treeView->scrollToBottom(); count=rows; }); } Don't get me wrong, it doesn't solve the problem, it only postpone it.
  • Embedding PyQt script in c++

    Solved
    14
    0 Votes
    14 Posts
    2k Views
    D
    @jeremy_k Hi again Thanks everyone for helping me. I did manage to make it work by installing pip and setting the correct python executable as a parameter to the QProcess::start() function. My mistake was linking the wrong python (specifically, Microsoft's Python) For anyone wondering here is my working code QProcess process; process.start("C:/Users/boyan/AppData/Local/Programs/Python/Python312/python.exe", QStringList() << "C:/Users/boyan/Desktop/sd.py"); if (!process.waitForFinished()) { qDebug() << "Error: " << process.errorString(); } else { qDebug() << "Process finished successfully."; // Read standard output of the process QByteArray outputData = process.readAllStandardError(); QString outputString = QString::fromUtf8(outputData); qDebug() << "Output:" << outputString; }
  • Tab order

    Unsolved
    5
    0 Votes
    5 Posts
    817 Views
    C
    @JacobNovitsky But how to adjust it using Qt Libs? Either version of QWidget::setTabOrder()