跳到內容

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k 主題 456.4k 貼文
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    3 瀏覽
    尚無回覆
  • RTF

    Unsolved
    4
    0 評價
    4 貼文
    484 瀏覽
    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.
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    30 瀏覽
    尚無回覆
  • 此主題已被刪除!

    Unsolved
    3
    0 評價
    3 貼文
    63 瀏覽
  • Problem with tableWidget component when QGraphicsOpacityEffect gradient reverts to opacity

    Unsolved
    2
    0 評價
    2 貼文
    178 瀏覽
    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 評價
    4 貼文
    345 瀏覽
    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 評價
    25 貼文
    5k 瀏覽
    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 評價
    1 貼文
    173 瀏覽
    尚無回覆
  • How to make the border have specific length in stylesheet

    Unsolved qtabbar qtabwidget stylesheet border style
    5
    0 評價
    5 貼文
    801 瀏覽
    G
    @Abderrahmene_Rayene smart!
  • error: cannot open output file

    Solved
    18
    0 評價
    18 貼文
    3k 瀏覽
    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 評價
    3 貼文
    889 瀏覽
    J
    @Christian-Ehrlicher That was it, thanks!
  • Is it possible to set indent for QTextEdit's markdown content

    Unsolved
    4
    0 評價
    4 貼文
    489 瀏覽
    M
    Turns out that it is possible, it is defined under the document member variable of QTextEdit: ui->textEdit->document()->setIndentWidth(10);
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    1 瀏覽
    尚無回覆
  • can i hide/delete this red part?

    Unsolved
    3
    0 評價
    3 貼文
    266 瀏覽
    Ronel_qtmasterR
    @piercashuang setWindowFlags(Qt::FramelessWindowHint);
  • QMAKE_EXTRA_COMPILERS adds file to OBJECTS

    Unsolved
    3
    0 評價
    3 貼文
    230 瀏覽
    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 評價
    2 貼文
    268 瀏覽
    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 評價
    3 貼文
    290 瀏覽
    Christian EhrlicherC
    I mean - what do you expect?
  • Qt Widgets 6 WebAssembly Theme

    Unsolved
    2
    0 評價
    2 貼文
    184 瀏覽
    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 評價
    4 貼文
    998 瀏覽
    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 評價
    13 貼文
    4k 瀏覽
    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 ?