Skip to content
Qt 6.11 is out! See what's new in the release blog
  • 0 Votes
    2 Posts
    20 Views
    P
    Same crash for 6.10.1, 6.10.3, 6.11.0
  • 0 Votes
    2 Posts
    59 Views
    Axel SpoerlA
    Hello, you can have multiple executables in one CMake project, and deal with it in one single Qt Creator instance. As a template you can git clone "https://codereview.qt-project.org/qt/qtqa" and load .../src/fuzzgen/CMakeLists.txt in Qt Creator. It's a project with multiple executables. You can select the run target like that: [image: aa73058f-e72b-45f2-9e27-b532d2583f5e.png]
  • Modern App Packaging

    Unsolved General and Desktop
    2
    0 Votes
    2 Posts
    51 Views
    SGaistS
    Hi and welcome to devnet, Might be a silly question but did you read through the windeployqt and macdeployqt documentation ? These pages already covers quite a lot of the things you are mentioning.
  • 0 Votes
    2 Posts
    132 Views
    SGaistS
    Hi, From a quick look at the documentation of FetchContent_Declare, I think you should pass the commit hash matching that tag.
  • Qt6.11.1: Qt Multimedia not working on iOS device

    Unsolved Mobile and Embedded
    4
    0 Votes
    4 Posts
    92 Views
    SGaistS
    Then try with the full logging enabled. There will be a flood but you might find something in there.
  • Cant find a way to implement MPV player into my project

    Unsolved Qt Creator and other tools
    4
    0 Votes
    4 Posts
    69 Views
    SGaistS
    Not that I want to discourage you but did you consider using Qt Multimedia ? It already provides support for playing music using ffmpeg under the hood. That said, did you already check the mpv C client api ?
  • having an issue

    Moved Unsolved Qt Creator and other tools
    2
    0 Votes
    2 Posts
    84 Views
    SGaistS
    Hi, Which version of Qt Creator ? Which version of Qt ? On which OS ? Does it happen if you use a default project ? Is it a complex class ? Do you have a more complete error message ?
  • Interactive bezier spline editing within a mainwindow UI

    Unsolved General and Desktop
    10
    0 Votes
    10 Posts
    265 Views
    L
    custom class header: class customGraphicsScene : public QGraphicsScene { Q_OBJECT protected: void mousePressEvent(QGraphicsSceneMouseEvent *event) override; }; class source file: void customGraphicsScene::mousePressEvent(QGraphicsSceneMouseEvent *event) { if (event->button() == Qt::LeftButton) { qDebug() << "clicked!"; } } mainwindow implementation: MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) { ui->setupUi(this); customGraphicsScene *customScene; ui->graphicsView_2->setScene(customScene); } MainWindow::~MainWindow() { delete ui; }
  • Getting undefined values when using QAbtractListModel

    Unsolved QML and Qt Quick
    2
    0 Votes
    2 Posts
    62 Views
    SGaistS
    Hi and welcome to devnet, Please show a minimal code sample that reproduces your situation. Also: Which version of Qt ? On which OS ?
  • Programatically iterate over public Files in Android

    Unsolved Mobile and Embedded
    3
    0 Votes
    3 Posts
    157 Views
    B
    QDir -> QFileInfoList and QDirIterator show mostly app dirs and files and some public dirs without file names.
  • Qt Project Goals 2026-2028 - call for submissions now open

    Unsolved Announcements
    1
    0 Votes
    1 Posts
    85 Views
    No one has replied
  • Problem getting QGraphicsItem::mousePressEvent to trigger

    Unsolved General and Desktop
    13
    0 Votes
    13 Posts
    403 Views
    Christian EhrlicherC
    This works fine for me class MyQGraphicsItem : public QGraphicsItem { public: using QGraphicsItem::QGraphicsItem; QRectF boundingRect() const override { return QRectF(0, 0, 50, 50); } void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = nullptr) override { painter->fillRect(boundingRect(), Qt::red); } }; class MyQGraphicsView : public QGraphicsView { public: using QGraphicsView::QGraphicsView; void mousePressEvent(QMouseEvent *event) override { delete moveEvent; moveEvent = new QMouseEvent(event->type(), event->localPos(), event->globalPos(), event->button(), event->buttons(), event->modifiers()); qDebug() << event; QTimer::singleShot(1000, this, &MyQGraphicsView::doSomething); } void doSomething() { qDebug() << moveEvent; } QMouseEvent* moveEvent = nullptr; }; int main(int argc, char* argv[]) { QApplication app(argc, argv); QGraphicsScene scene; scene.addItem(new MyQGraphicsItem); MyQGraphicsView view(&scene); view.show(); return app.exec(); } --> same local & global pos even after 1 second timer.
  • 0 Votes
    9 Posts
    339 Views
    Andy314A
    A question: How is this integrated. Uses it the full codemodel for the project (I have 140000 LOC) or looks it only the corrosponding CPP-File what should be fast ? I will check the other hints.
  • QTBUG-141579 deadlock protector crashes the app.

    Unsolved Mobile and Embedded
    6
    0 Votes
    6 Posts
    184 Views
    Andy314A
    Open() instead of exit() breaks former simple code logic - all becomes more complicated. A quick YesNo-Question for code branching is not so simple as before. Open waits not for the answer. How can I do it: Open a dialog at top (switch it to modal) and connect via slots the f.e. Ok-Button (resp. a special signal, what is triggered by the OK-Button) to a slot of the calling dialog/methode ? That would be a lot of work for all my dialogs. I there a simpler universal way for it ? In my code I have a loop, that opens multiple dialogs depends on the input until all questions are answerend. Now, I have tried to use singleShot for exec a dialog, what solved some problems. That needs logic changed too, but I must not change my called dialogs.
  • 0 Votes
    7 Posts
    522 Views
    A
    @cristian-adam I think I'll write a suggestion for an additional "Build current executable only (disable other build targets)"
  • How to hide bottom panel

    Moved Unsolved Qt Creator and other tools
    2
    0 Votes
    2 Posts
    133 Views
    Christian EhrlicherC
    You should at least mention that your problem is within QtCreator when you are not even able to post in the correct category...
  • Beware of nested event loops

    Unsolved General and Desktop
    6
    3 Votes
    6 Posts
    289 Views
    G
    void MainWindow::on_pushButton_clicked() { qDebug()<<"begin 1"; QEventLoop loop1; QDialog dlg1; dlg1.setWindowTitle("dlg1"); dlg1.setLayout(new QVBoxLayout()); QPushButton *button = new QPushButton("Click"); dlg1.layout()->addWidget(button); QObject::connect(&dlg1, &QDialog::finished, &loop1, &QEventLoop::quit); QObject::connect(button, &QPushButton::clicked, &dlg1, [&]() { qDebug()<<"begin 2"; dlg1.hide(); QDialog dlg2; dlg2.setWindowTitle("dlg2"); dlg2.exec(); dlg1.show(); qDebug()<<"end 2"; }); dlg1.open(); loop1.exec(); qDebug()<<"end 1"; }
  • Issue: Setter & Getters Generation using Alt+Enter

    Moved Unsolved Qt Creator and other tools
    3
    0 Votes
    3 Posts
    160 Views
    S
    No i don't have member function. making a new project solved this problem
  • Using QUiLoader to load a composite widget

    Unsolved Qt for Python
    3
    0 Votes
    3 Posts
    166 Views
    JonBJ
    @HenryInUtah At least from C++ unless it is any different from Python/PySide: when you load a .ui file at runtime you get all its widgets but you do not get "variables" for each one, like you do when you generate code from it via uic. That means you have to "find" widgets to address them, via QWidget.findChild/findChildren() from a top-level widget. You would have to do that to read/write their values or attach signals, etc. Is that not the situation you are in? Which is pretty inconvenient, and one of the many reasons why most of us do not pick dynamic runtime loading of the .ui file but instead use uic to generate "variables" for each widget we can use directly, as @friedemannkleint has recommended.
  • hellogl2 not working

    Unsolved Qt for WebAssembly
    1
    0 Votes
    1 Posts
    79 Views
    No one has replied