Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • RTF

    Unsolved
    4
    0 Votes
    4 Posts
    484 Views
    C
    @Pl45m4 said in RTF: https://doc.qt.io/qt-6/richtext.html https://doc.qt.io/qt-6/richtext-structure.html Thanks for the help. I will check out the web sites and source code tomorrow.
  • This topic is deleted!

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

    Unsolved
    3
    0 Votes
    3 Posts
    63 Views
  • 0 Votes
    2 Posts
    178 Views
    Pl45m4P
    @2hours said in Problem with tableWidget component when QGraphicsOpacityEffect gradient reverts to opacity: When I use QGraphicsOpacityEffect to implement a gradient toggle for stackedWidgets, the tablewidget component on page 0 of the stackedWidget is not being restored to opacity properly, as indicated by the fact that its center background is restored to opacity but the column headers and sliders are transparent. I'm not sure, can you show or explain further what you expect? I don't know what it immediately reverts to opacity means, but some things I've noticed: This line is meaningless ui->tableWidget->setGraphicsEffect(nullptr); since these lines QWidget *currentWidget = ui->stackedWidget->currentWidget(); // ... QWidget *nextWidget = ui->stackedWidget->widget(0); return a plain "page" QWidget which holds your QTableWidget. So the QGraphicsOpacityEffect is applied to the page Widget, not the QTableView itself. (when you did everything in Designer) Also there might be something wrong with your logic... if you want to do what I think, then starting both animations at the same time and with same duration doesn't make any sense. Start the Fade-out, when finished, start the fade-in and flip the page of your QStackedWidget. It works for me, but some parts of the QTableWidget seem to ignore the opacity effect at all... they are never opaque or transparent. The background of the header and other widgets on the same page fade-in though. Edit: When setting the effect to the QTableWidget's viewport, the content fades in correctly (the header still doesn't) Seems like QTableWidget doesn't like being transparent :D Even though, setting the effect to the QStackedWidget' s page widget, should apply it to all children (as stated here)
  • Can I "connect" using QAction as sender ?

    Unsolved
    4
    0 Votes
    4 Posts
    345 Views
    Axel SpoerlA
    @AnneRanch @Chris-Kawa explained here, how actions are added to a menu. If I remember your code correctly from previous posts, TEMP_is an array of QMenu. So the connect statement connects to a menu, which works only with signals of QMenuor one of its base classes. QAction isn't such a base class of QMenu, which is the reason for your compiler errors. It's not possible to suggest a working alternative, because we don't know where you store the pointer to the QActionreturned by addAction("yourText"). Let's assume it is stored in QAction *tempAction. In that case the following would work: connect(tempAction, &QAction::triggered, this, [=]() {this->processAction(index_sub, index); });
  • How to send Email from my application?

    Solved
    25
    0 Votes
    25 Posts
    5k Views
    JonBJ
    @Volker75 said in How to send Email from my application?: 2FA and set a password That's the bit I meant. You didn't used to have to do that, now one has all this complication, that's all. Glad you found a library for Qt to do SMTP.
  • [ui] i18n of lengthy tooltip with interspersed stylesheet markup

    Unsolved
    1
    0 Votes
    1 Posts
    173 Views
    No one has replied
  • 0 Votes
    5 Posts
    799 Views
    G
    @Abderrahmene_Rayene smart!
  • error: cannot open output file

    Solved
    18
    0 Votes
    18 Posts
    3k Views
    JonBJ
    @nekkceb If you have got procexp64 or similar working, instead of look for executable running it has something which lets you pick a file and find all "open handles" into it. That really ought find dynamicspline.exe with a handle! Or, from error message :-1: error: cannot open output file dynamicspline.exe: Invalid argument. the invalid argument might just indicate that the file "does not exist" or "half exists", is in a funny state so that it cannot be overwritten but can be deleted.... Anyway, that's me out of suggestions now.
  • How to load a webp in QImage?

    Solved
    3
    0 Votes
    3 Posts
    889 Views
    J
    @Christian-Ehrlicher That was it, thanks!
  • 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
    230 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
    268 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
    998 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 ?