Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • MaintenanceTool

    Unsolved
    6
    0 Votes
    6 Posts
    517 Views
    JoeCFDJ
    @SPlatten in Qt 5.15.2, you can do #include <QAction> as well. QtWidgets is not needed.
  • This topic is deleted!

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

    Unsolved
    4
    0 Votes
    4 Posts
    535 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
    208 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
    460 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
    190 Views
    No one has replied
  • 0 Votes
    5 Posts
    982 Views
    G
    @Abderrahmene_Rayene smart!
  • error: cannot open output file

    Solved
    18
    0 Votes
    18 Posts
    5k 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
    1k 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
    549 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
    302 Views
    Ronel_qtmasterR
    @piercashuang setWindowFlags(Qt::FramelessWindowHint);
  • QMAKE_EXTRA_COMPILERS adds file to OBJECTS

    Unsolved
    3
    0 Votes
    3 Posts
    286 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
    315 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
    335 Views
    Christian EhrlicherC
    I mean - what do you expect?
  • Qt Widgets 6 WebAssembly Theme

    Unsolved
    2
    0 Votes
    2 Posts
    204 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.