Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.5k Posts
  • Create a Brush Preview

    Unsolved
    6
    0 Votes
    6 Posts
    423 Views
    VRoninV
    have a look at this example that shows you how to paint reacting to mousemove
  • QDial pointer mismatch

    Solved qt5.14 qt5.7
    9
    0 Votes
    9 Posts
    2k Views
    S
    @mrjj I tried the above in main and it worked. #include <QStyleFactory> ... QApplication a(argc, argv); a.setStyle(QStyleFactory::create("Fusion")); ... Thanks and sorry for late reply.
  • Passing data from main.cpp to mainwindow and back

    Unsolved
    3
    0 Votes
    3 Posts
    254 Views
    S
    Haha sorry about that... Will do that.
  • Serial terminal disconnecting unexpectedly

    Moved Unsolved serialport
    5
    0 Votes
    5 Posts
    747 Views
    A
    @J-Hilk said in Serial terminal disconnecting unexpectedly: of course not, and there is no guarantee that 20ms will be enough each and every time! If new data arrives readyread will signal again. Your job as a programmer is to store the data, identify if all is arrived, and only then do your processing. Thank you so much for your quick reply. I store the data in an array and wait for the entire data to come. Now there is no problem with serial communication.
  • Looking for advice on web related project.

    Unsolved
    7
    0 Votes
    7 Posts
    597 Views
    JonBJ
    @VRonin I totally admit this is not my area, but I thought for the OP's e.g. and auto copy other news articles by autofinding article beginning in same site if news releases. he might need some QWebChannel to be able to play with what might be going on in JavaScript, or interact with JS himself, no (I have never used it)? I see that webassembly should indeed not be relevant.
  • Why does not QListWidget sort correctly?

    Solved
    7
    0 Votes
    7 Posts
    837 Views
    Q
    @JonB Maybe I just made a mistake. I just think I saw something like that.
  • Lisence, Opensource to Commercial questions

    Solved
    8
    0 Votes
    8 Posts
    819 Views
    M
    @sierdzio hehe indeed!
  • QMdiSubWindow close issue

    Unsolved
    6
    0 Votes
    6 Posts
    811 Views
    R
    Hi Bonnie, thanks for reply. I notice that context menu too, and I don't know if it is a bug. Because if you just right click and context menu will popup, then don't move cursor do another right click, the subwindow will not be closed. If it is second right click that trigger the close action it should be closed as well. Subwindow will be closed only if you double right click quickly.
  • Correct prefixes for qrc and file ?

    Solved
    5
    0 Votes
    5 Posts
    223 Views
    sierdzioS
    File is for files on your filesystem. The others are only for accessing the QRC resources.
  • QSplitter::handle:pressed not working on external stylesheet

    Unsolved
    17
    0 Votes
    17 Posts
    2k Views
    mrjjM
    @Robert-Sanson Hi You must call base class version of mousePressEvent etc so it can do its normal handling too.
  • QWaitCondition causes app the crash

    Solved
    13
    0 Votes
    13 Posts
    1k Views
    S
    @SimonSchroeder Thank you for the explaination. I did inside my transmitter and receiver class create another function that is called when a window is closed. Since the receiver keeps on running and never stop, I figure it is a good idea to put an if statement where when the window is closed, it will stop the receiver from running for another time.
  • Issue with QTextBrowser not redrawing after append until the widget is resized

    Unsolved
    4
    0 Votes
    4 Posts
    346 Views
    SGaistS
    There's one phrase that is a bit contradictory, once you say that with the 10.14 SDK, it fails on macOS 10.14 and in another that it runs well everywhere.
  • How to Split Hex String?

    Solved
    19
    0 Votes
    19 Posts
    3k Views
    ahsan737A
    @jsulm CR or LF are not being used for the new line. Communication: 9600 baud, 8 data bits, no parity and one stop using Bluetooth (SPP) Data Frame: [image: 6b351a2c-f822-4354-a167-da938229fe98.JPG] is this info sufficient to detect the start of the block?
  • QThread eating up memory

    Unsolved
    10
    0 Votes
    10 Posts
    734 Views
    S
    @SGaist Sorry for being dumb here, but when you say create new object, do you mean creating variables? Like inside my function there's QByteArray A, but it was not destroyed when the program is running so it create more of itself? Could you also please give an example, as I am abit clueless.
  • Keeping track of threads

    Solved
    21
    0 Votes
    21 Posts
    5k Views
    J
    @VRonin I have it implemented and it works great. The new QT5 way is much better as you do not have to worry about paramaters in the calls. Just an FYI, when I did it my way it worked fine until the number of workers reached about 50+ then I started received errors like QThread destroyed... once I implemented your way it works fine and I believe its faster as well(never tested). Thanks very much for your assistance! --James
  • Search in QTableView

    Solved
    6
    0 Votes
    6 Posts
    540 Views
    SGaistS
    SQL level: QSqlTableModel::setFilter. Otherwise QSortFilterProxyModel.
  • Drag pixmap with semi-transparency?

    Unsolved
    1
    0 Votes
    1 Posts
    525 Views
    No one has replied
  • qt message handler code execution

    Unsolved
    2
    0 Votes
    2 Posts
    148 Views
    SGaistS
    Hi, AFAIU, if the category is disabled, nothing will happen after the enabled check.
  • Need help: Using QVideoWidget as a Background

    Solved
    17
    0 Votes
    17 Posts
    3k Views
    V
    @Bonnie Oh wow.. didn't expect that :) I'll downgrade then and I'll see.. Thanks a lot for helping !
  • QNetworkDatagram.data() appends null char

    Solved
    16
    0 Votes
    16 Posts
    1k Views
    mzimmersM
    Thanks for the help...it's been educational. Now, if I could just get someone to help me in the installer forum (heh)...