Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.5k Posts
  • Installation Qt bugs

    Solved
    3
    0 Votes
    3 Posts
    292 Views
    J
    @JonB Ok, I understand now. I would expect the installation program to warn the user of this incompatibility, but that is so. I'll try the fix in the post you indicated. Many thanks, Jean-Claude
  • Use of the word 'or' instead of double pipe '||'

    Unsolved
    15
    0 Votes
    15 Posts
    1k Views
    Chris KawaC
    @fcarney C++ has grown to be a very versatile language. It can be used to solve "real world" engineering problem, teach someone to code, enter one of these for fun code contests and much more. That type of code is good for one of these tasks at least :) https://youtu.be/DEqXNfs_HhY
  • Efficient raw video display

    Solved
    14
    0 Votes
    14 Posts
    2k Views
    C
    @SGaist Thank you for detailing the subject even after this discussion, and for all the contributions you have made. That will be the approach I'm going with.
  • Testing Drag & Drop

    Unsolved test drag&drop
    6
    0 Votes
    6 Posts
    2k Views
    K
    I didn't intend this question to be a joke or blaming session. I invested quite some time already in trying to make testing Drag&Drop work. Does anyone have an idea how to (automatically; also in CI) post the necessary events to make the drag-engine recognize them? Nothing I tried inside the Qt-framework worked so far, because the drag-engine circumvents the Qt-framework completely. At least on Windows; could be different on Unixoid systems, but I don't have the liberty to use that system. Just a thought: is there a platform-plugin available for testing on Windows? Currently the default one is loaded.
  • 0 Votes
    1 Posts
    179 Views
    No one has replied
  • Model-View and trees

    Unsolved
    2
    0 Votes
    2 Posts
    216 Views
    JonBJ
    @AndrzejB Are you looking for QFileSystemModel + QTreeView? See https://doc.qt.io/qt-5/qfilesystemmodel.html#example-usage.
  • Duplicate files exist

    Unsolved
    7
    0 Votes
    7 Posts
    610 Views
    Swati777999S
    @J-Hilk I guess no
  • qt wrong executable generation in release mode

    Unsolved
    2
    0 Votes
    2 Posts
    161 Views
    jsulmJ
    @Yaldiz In what way is it "wrong"? Release builds are smaller than debug builds because they do not contain debug information.
  • 0 Votes
    2 Posts
    363 Views
    CharbyC
    I came to the idea of adding a context property (set initializeEngine) publishing the needed meta data...not ideal yet but good enough for my needs so far...
  • Select item in QTreeWidget

    Solved
    2
    0 Votes
    2 Posts
    794 Views
    D
    Figured it out. What I was trying to do was make it so if you selected a top level item in the tree it would select it's first child instead. But I was doing this from the currentItemChanged slot, which apparently doesn't work. So instead I had to use a QTimer::singleShot to call it after the signal was done... void on_treeWidget_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous) { if (current->childCount()) { QTimer::singleShot(0, ui->treeWidget, [this, current](){ ui->treeWidget->setCurrentItem(current->child(0)); }); } }
  • Interactive image

    Unsolved
    3
    0 Votes
    3 Posts
    371 Views
    Kent-DorfmanK
    one simple way is to overlay a grid layout of proper resolution densty and then use the placement policies to center and size the buttons in their respective cells.
  • how to move multiple sockets to thread

    Unsolved
    3
    0 Votes
    3 Posts
    336 Views
    SGaistS
    Hi, You are not using Qt sockets there since you are using ZMQ. You should take a look at this article from ICS implementing an application using ZMQ and Qt.
  • QTableView spanned cells selection

    Unsolved
    6
    0 Votes
    6 Posts
    629 Views
    SGaistS
    You're welcome ! Well, yours could become one :-)
  • Get QFont type issue

    Solved
    2
    0 Votes
    2 Posts
    218 Views
    Cobra91151C
    Ok. I have got the font type information by font file mime type. Here is my solution. Code: QString getFontType(const QString &fileName) { QString fontType = ""; QMimeDatabase mimeDB; QMimeType mimeType = mimeDB.mimeTypeForFile(fileName, QMimeDatabase::MatchContent); if (mimeType.name().contains("application/x-font-ttf")) { fontType = "TrueType"; } else if (mimeType.name().contains("application/x-font-otf")) { fontType = "OpenType"; } else { fontType = "OtherType"; } return fontType; } So, the issue is resolved.
  • Windows 10/11 dark mode?

    Unsolved
    1
    0 Votes
    1 Posts
    145 Views
    No one has replied
  • half-ordered qmake subdirs for optimal compilation speed?

    Solved
    6
    0 Votes
    6 Posts
    416 Views
    T
    @SGaist said in half-ordered qmake subdirs for optimal compilation speed?: Hi, You are making a mistake. Qt 4.8 already has support for depends. See the 4.8 SUBDIRS variable documentation. Oops, I misunderstood the wiki saying "Qt 4.8.x does not support it at all ", it seems that applies only to Visual Studio. Thanks!
  • 0 Votes
    3 Posts
    305 Views
    K
    appreciate your response
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    19 Views
    No one has replied
  • [C++] Playing stream with QMediaPlayer app not responding

    Unsolved
    5
    0 Votes
    5 Posts
    513 Views
    B
    @jsulm as i said its stuck on this vPlayer->deleteLater(); and delete vPlayer; and vPlayer->setMedia(QUrl(Url)); and vPlayer->play(); if i do only vPlayer->deleteLater(); its stuck if i do only delete vPlayer; its stuck if i do only vPlayer->setMedia(QUrl(Url)); its stuck if i do only vPlayer->play(); its stuck lets say like that .. i open my app .. i run in my cmd ffmpeg.exe to stream my screen to my rmtp server and now i have link to my stream like that https://example.com:2083/live/stream.flv i call the function LoadStream() and its working i can see the video now i close the cmd with the ffmpeg to stop sharescreen the video is black .. now if ill try to remove or to reload QMediaPlayer its stuck .. lets say i open again the cmd and run ffmpeg and run vPlayer->play(); its stuck if ill try to reload the link vPlayer->setMedia(QUrl(Url)); its stuck .... all this happend only if i close the stream before i remove or stop the QMediaPlayer ..
  • help !! addRow doesn't show

    Unsolved
    7
    0 Votes
    7 Posts
    829 Views
    KamalepK
    @SGaist Yes sir, that was the mistake, I used QVBoxLayout(), but the correct is a QFormLayout. Thank you so much.