Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • QPushButton in a QFrame does not receive clicked signle.

    Unsolved
    10
    0 Votes
    10 Posts
    943 Views
    MarKSM
    @Ketan__Patel__0011 OP states btn_close does not emit the clicked signal at all.
  • How to drag and drop OS Files with Icons and textes?

    Unsolved
    3
    0 Votes
    3 Posts
    437 Views
    SGaistS
    @JonB QPushButton does allow both. @TomNow99 you can reimplement the handling of dropped data to fill the model with want you want.
  • Display stream from Gstreamer to a widget

    Unsolved
    3
    0 Votes
    3 Posts
    2k Views
    SGaistS
    Hi and welcome to devnet, The final sink must be named: "name=qtvideosink". See the setMedia example.
  • Connecting Firebird with Qt-5

    Unsolved
    4
    0 Votes
    4 Posts
    513 Views
    SGaistS
    Hi, Yes you have to, it's explained here.
  • Copy and paste form does not maintain layout

    Solved
    9
    0 Votes
    9 Posts
    1k Views
    A
    One more "gotcha" Dragging widget to scratchpad DELETES it from the form !
  • QFormLayout

    Unsolved
    5
    0 Votes
    5 Posts
    384 Views
    A
    Could "edit buddies" in QtDesigner help with "matching " the widgets format ??
  • QStandardItemModel not inserting children

    Solved qstandarditemmo qmodelindex
    8
    0 Votes
    8 Posts
    4k Views
    TrilecT
    Thanks SGaist, will tag as solved.
  • Cannot find .pro file

    Unsolved sql database pro file
    2
    0 Votes
    2 Posts
    5k Views
    JohanSoloJ
    If you chose a CMake project, a CMakeLists.txt file will be used. You have to choose qmake as build system to get a .pro file.
  • Anyone tested their Qt app on macOS 10.16 yet?

    Unsolved
    1
    0 Votes
    1 Posts
    140 Views
    No one has replied
  • QObjectPicker with overlapping objects

    Unsolved
    1
    0 Votes
    1 Posts
    157 Views
    No one has replied
  • QWebSockets problems!

    Unsolved
    9
    0 Votes
    9 Posts
    440 Views
    K
    @Pablo-J-Rogina i changed the class name aswell to match :) Socket class socket object
  • QSortFilterProxyModel is not filtering

    Solved
    4
    0 Votes
    4 Posts
    876 Views
    T
    @JonB I have also tried with setFilterFixedString and the proxymodel still doesn't filter. I don't need to set filterRole as it is display role be default. As I understand the docs, I shouldn't need to subclass the proxymodel for such a simple use case. It should be working out of the box. You are right I misspelled. It should be fifth column but the code is correct. Let me share a screen shot of the table I'm trying to filter.! [image: d56681df-7ee5-4aa8-ae7c-1040851de04c.png]
  • QSerialPort readAll() does not work with 5.14.0 anymore

    Solved
    33
    0 Votes
    33 Posts
    6k Views
    R
    @kuzulis said in QSerialPort readAll() does not work with 5.14.0 anymore PS: And yes, you don't need in QThread::msleep(3), because it has not sense (because the sleeping already does by waitForXXX() methods). Ah, ok. I guess bool com::waitForReady(int timeout) { waitForReadyRead(1); QElapsedTimer elapsed; elapsed.start(); while (bytesAvailable() == 0 && elapsed.elapsed() < timeout) { waitForReadyRead(1); } if (elapsed.elapsed() < timeout) { return true; } return false; } is the "correct" solution then. Update: Just for the sake of completeness, here is the patch for my program: https://github.com/BrillouinMicroscopy/BrillouinAcquisition/pull/135
  • Disable tristate of checkbox in QTableView

    Solved
    3
    0 Votes
    3 Posts
    809 Views
    qwasder85Q
    @JonB You were right about being surprised. Because it wasn't returning Qt::ItemIsAutoTristate. I'm overriding the setData()-function in that model as well and apparently the issue came from handling the checked-state in there. I'm not yet sure how this resulted in this behavior. So thank you, the issue was NOT with the flags.
  • 0 Votes
    5 Posts
    3k Views
    A
    I got it fixed, thanks to @Christian-Ehrlicher! I almost did not try your suggestion because I thought I knew very well where the warning comes from. But it turned out that I had missed a setQuery() call that was lacking its second parameter (the database connection to use).
  • where is the qt5.9.5-qtactiveqt example project download address?

    Unsolved
    2
    0 Votes
    2 Posts
    198 Views
    JonBJ
    @mirro What is your question/problem? That link shows a number of examples.
  • Misleading QSqlField type of MYSQL database

    Solved
    3
    0 Votes
    3 Posts
    317 Views
    D
    Hi @Christian-Ehrlicher , Thank you for your comment. Perfectly understood. Have a nice day, Davide
  • What does this qt_GetMessageHook(Qt5.6.3) do?

    Unsolved
    1
    0 Votes
    1 Posts
    192 Views
    No one has replied
  • Qt\QML Q_PROPERTY() REQUIRED syntax issue

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    JonBJ
    @simone-malvezzi Always a good idea to state your Qt version when asking a question like this! :)
  • QProcess waitForFinished crashed

    Unsolved
    2
    0 Votes
    2 Posts
    505 Views
    JonBJ
    @terryGGG It doesn't crash every time, the crash possibility may lower than 0.1%. I don't think anyone will be able to solve this for you from what you show. And you do not say what version of Qt you are using, which might be relevant. Write yourself a standalone program, as minimal as possible [~20 lines?], which just does your code, 10,000 times in a loop. Make the command something simple & harmless, say dir or echo hello. Does it crash? Does it matter what the command is? If you do get a crash: get rid of both cmd->waitForStarted(); cmd->waitForFinished(-1); and replace with the QProcess signal/slots equivalent, so no waitFor...() calls, which can be "dodgy", especially potentially under Windows. Does that crash?