Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • How to play sound continuously using QTConcurrent

    Unsolved
    4
    0 Votes
    4 Posts
    376 Views
    SGaistS
    I would rather write a dedicated class that works with that processing library and once a batch is done emit a signal with a QByteArray containing these data that you can then directly write into the sink.
  • Map cv::Mat to QAbstractPlanarVideoBuffer subclass

    Unsolved
    3
    0 Votes
    3 Posts
    277 Views
    B
    I have no experience in this but it may help to look at how Qt use gstreamer's video frame to construct a planar video buffer: https://code.woboq.org/qt5/qtmultimedia/src/gsttools/qgstvideobuffer.cpp.html
  • is there anyway to Send Email to someone in Qt?

    Unsolved
    48
    0 Votes
    48 Posts
    30k Views
    KroMignonK
    @maksimilijan said in is there anyway to Send Email to someone in Qt?: you never know, the task is not difficult.. Maybe someone is willing. If this task is not difficult why you don't do it yourself?
  • Pasting from main menu

    Unsolved
    3
    0 Votes
    3 Posts
    399 Views
    P
    I found a solution after some sleep. I needed to catch the QApplication::focusChanged signal and then basically do my own handling from there. When I tried this the first time I did not realize I needed to walk up the widget chain to find a parent which was a 'IPasteHandler' (my invented interface implemented by windows handling the paste command).
  • How to send email using Qt 5.5.1

    Unsolved
    26
    0 Votes
    26 Posts
    19k Views
    JonBJ
    @maksimilijan I don't think/hope anyone here would take payment for doing your homework, as you say in your other post....
  • parameter passing to Qthread

    Solved qthread qthread threads c++11 qtcreator 5.0 qt5
    7
    0 Votes
    7 Posts
    5k Views
    Vivek_AV
    @jsulm @Christian-Ehrlicher signal/slot method working connect(this,&MainWindow::starting,onethread,&myThread::recvNum); onethread->start(); for(int i=1;i<5;i++) { emit starting(i); }
  • QListWidget, prompt before currentItemChanged signal

    Solved
    15
    0 Votes
    15 Posts
    1k Views
    SPlattenS
    @Christian-Ehrlicher , @jsulm , I think I've been going down a rabbit hole in trying to implement this model, when all I actually need to do is move the test for change into the slot and then if I don't want to allow the selection change assign QListWidgetItem* pobjCurrent to QListWidgetItem* pobjPrevious.
  • Why is flags() in model, not in view?

    Unsolved
    6
    0 Votes
    6 Posts
    445 Views
    C
    If the model says an item cannot be edited then no view can edit it. The model may do this because the value being presented is coming from a source that cannot be written to (e.g. a sensor of some sort), or is derived in some way (e.g. presenting area derived from editable length and width values). A view can choose to disallow editing of items the model says can be edited (by providing no edit trigger), but it cannot do the opposite. Each view is independent, so one can edit where another may not. If you need to restrict editing of individual items that the base model says can be edited (or other fine grained tweaks) then you can us QIdentityProxyModel as @Christian-Ehrlicher pointed out.
  • QCamera bug when Macbook lid is closed

    Unsolved
    5
    0 Votes
    5 Posts
    388 Views
    F
    @SGaist thanks, I'll let you know
  • MP3 player issue

    Unsolved
    5
    0 Votes
    5 Posts
    503 Views
    B
    I've seen someone successfully built a qtmultimedia gstreamer plugin on Windows like this: https://github.com/gunrot/windows-qt-with-gstreamer If that's possible, then maybe you could use gstreamer plugin instead of the default wmf/dshow ones, it should have better codecs support. But you'll also need to port gstreamer libraries with your application. Just for discussion, never tried that by myself... Ah...Also, strangely I've tried the Media Player Example with my qt5.15 and I can play both your good and bad mp3 files... I remember reading from somewhere that the default backend's media playing capability on Windows also depends on the codecs you've installed on your system.
  • Qt Creator was installed in Japanese! Switch the interface, please?

    Solved
    2
    0 Votes
    2 Posts
    317 Views
    B
    Hahaha, 環境 -> インターフェース -> 言語 -> Choose what you want -> Ok
  • QMenu tearoff - hover css not working

    Unsolved qmenu qstylesheet
    4
    0 Votes
    4 Posts
    654 Views
    SGaistS
    Depending on how your wrote your stylesheet it will take precedence on the rest of your changes.
  • Deleting row from QTableWidget and from Sqlite database

    Solved
    71
    0 Votes
    71 Posts
    30k Views
    R
    @SGaist said in Deleting row from QTableWidget and from Sqlite database: @JonB I think that @Risver is writing a password manager. Yes You're right. I solve the problem. I applied again tableWidget instead the tableView.
  • QtQuick Python+Anaconda: "main.qml:1 module "QtQuick" version 2.14 is not installed"

    Solved
    9
    0 Votes
    9 Posts
    2k Views
    SGaistS
    PySide2 releases follow the Qt 5 releases.
  • Allow selection of only single item in QItemSelectionModel

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    ocgltdO
    You're right - those properties are not exposed to the QML class. I guess I'll have to code a deselect, then select on click
  • How to exploit a json file in QT ?

    Unsolved json cpp
    28
    0 Votes
    28 Posts
    8k Views
    F
    @jsulm said in How to exploit a json file in QT ?: @feedain You already have this code snippet here, did you notice it? obj["State"] = int(state); yes thanks
  • Problem with adding QStackWidget or QTabWidget as child

    Unsolved qstackedwidgets qtdesigner
    11
    0 Votes
    11 Posts
    3k Views
    P
    Thank you it's worked, it seems that my other Frames didn't contain anything so that's why the StackWidgets covered all the window.. Thank you @Pl45m4
  • How to make an application responsive to screen DPI/Resolution?

    Unsolved
    1
    0 Votes
    1 Posts
    245 Views
    No one has replied
  • UNIQUE CONSTRAINT FAILED on submitAll()

    Unsolved qsql qsqltablemodel sqlite3 unique qsqlrelationalt
    1
    0 Votes
    1 Posts
    409 Views
    No one has replied
  • 0 Votes
    13 Posts
    1k Views
    MasterBLBM
    You're mistaken mate. Nvm anyway, I've managed to solve the issue on my own.