Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • QDialog exec no longer modal after show

    Unsolved
    12
    0 Votes
    12 Posts
    775 Views
    SGaistS
    As explained in the method documentation, exec has some caveats to take into account when you design your application.
  • Qt Creator closes with terminal

    Unsolved
    8
    0 Votes
    8 Posts
    585 Views
    C
    @JacobNovitsky said in Qt Creator closes with terminal: I need to open Qt App with other Qt App It seems from the questions that you want to open an instance of Qt Creator, to open a Qt project B, from an application built by Qt project A (let's call it app A), running inside another instance of Qt Creator. Note that this is not the same as running the application built by Qt project B (let's call that app B). This appears to be be an unusual request leaving responders confused as to your intention. I think you might be confusing Qt Creator with the applications app A and app B. Are you sure you do not simply want Qt app A to launch app B? Note that there is no part to play for Qt Creator here. The source code of app A simply uses QProcess to give app A the ability to launch the binary of app B at run time.
  • App permissions in Ventura macOS

    Unsolved
    2
    0 Votes
    2 Posts
    124 Views
    SGaistS
    Hi, Which libraries were concerned ? What do you mean by permissions ?
  • Bundled App wont start, Run in QT Creator works

    Unsolved
    2
    0 Votes
    2 Posts
    138 Views
    SGaistS
    Hi, You can call qmake and make from them command line. Are you using any third party library ? Did you sign your application ? Did you try to start it from the command line to see if there was something reported ?
  • Qtimer not working

    Unsolved
    9
    0 Votes
    9 Posts
    639 Views
    SGaistS
    Hi, As @jsulm wrote, without more code it's not possible to understand what is going on. You might be doing stuff in the slots that could explain the issue.
  • How to forbid to use gnome terminal for specific app

    Unsolved
    5
    0 Votes
    5 Posts
    316 Views
    Pl45m4P
    @JacobNovitsky said in How to forbid to use gnome terminal for specific app: I need to debug it with QWindow something Then do so. Implement something where you can see debug messages in a QWidget. But it could be hard to track down issues when the GUI hangs/crashes and your "debug widget" is not responding either... There's a reason why debug output is send to a separate terminal/console and usually not displayed by the app you want to debug.
  • Compiling Qt6.5 for Raspberry Pi Zero for cross compiling

    Unsolved
    2
    0 Votes
    2 Posts
    300 Views
    S
    Update: I can compile 5.15.2 in the same way and the ABI is correct (arm-linux-generic-elf-32bit). So the question is: can qt 6.5.0 be compiled for ARMv6 32 bit? Or maybe any addition things should be done?
  • c++ does reads QList<QString> always empty when sent from QML

    Solved
    10
    0 Votes
    10 Posts
    478 Views
    S
    so at the end I converted that object array to JSON in QML, send it to C++, and in CPP recreated to JSON... bad practice but lets say ifs short code working, probably fast too
  • Qt Creator and Makefile based project. How?

    Solved
    2
    0 Votes
    2 Posts
    160 Views
    cristian-adamC
    Sure, see https://doc.qt.io/qtcreator/creator-projects-autotools.html for more information. It's about enabling the AutotoolsProjectManager plugin. I'm not sure if this works if you have your own baked makefile.
  • QButtonGroup at least one button must be checked.

    Unsolved
    5
    0 Votes
    5 Posts
    732 Views
    JoeCFDJ
    @jsulm I would define a std::bitset to do it for all checkboxes. If its value is 0, check the default one,
  • 0 Votes
    4 Posts
    800 Views
    cristian-adamC
    And if you just want to download the Qt OSS without an account you can use this CMake script via cmake -P download_qt6.cmake. It downloads Qt 6.4.2. No idea if it would work with Qt 6.5. But you don't get the ability to upgrade things like you can do with the official installer, and you'll have to manually do things.
  • get text from QTextEdit

    Unsolved
    4
    0 Votes
    4 Posts
    7k Views
    jsulmJ
    @JacobNovitsky What syntax? toPlainText() is a methof of QTextEdit class which you can call like any other method. QString text = ui->textEdit->toPlainText();
  • Could not load the Qt platform plugin "xcb" in "" even though it was found

    Unsolved
    2
    0 Votes
    2 Posts
    208 Views
    sierdzioS
    @JacobNovitsky Use qtcreator.sh, from the same directory.
  • QPainter draw semi-transparent overlay watermark changes lines underneath in PDF

    Unsolved
    1
    0 Votes
    1 Posts
    191 Views
    No one has replied
  • Error reporting in a custom Qt-based plugin system: exceptions or getLastError?

    Unsolved
    1
    0 Votes
    1 Posts
    129 Views
    No one has replied
  • Qt 6.5.2 Linux Static Compile library problem

    Unsolved
    3
    0 Votes
    3 Posts
    654 Views
    SGaistS
    Hi, Maybe this article will be of interest. Hope it helps
  • QPainter and QStyleSheet

    Unsolved
    4
    0 Votes
    4 Posts
    413 Views
    M
    @Vlad02 Note: If you subclass a custom widget from QWidget, then in order to use the StyleSheets you need to provide a paintEvent to the custom widget : void CustomWidget::paintEvent(QPaintEvent* event) { QStyleOption opt; opt.init(this); QPainter p(this); style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); QWidget::paintEvent(event); } https://wiki.qt.io/How_to_Change_the_Background_Color_of_QWidget Warning: Function setStyleSheet is particularly useful for demonstration purposes, where you want to show Qt's styling capabilities. Real applications should avoid it and use one consistent GUI style instead. As applicable to setStyle too. Agree 200%
  • MOC error LNK2019 for QMetaObject when import/export

    Solved
    1
    0 Votes
    1 Posts
    199 Views
    No one has replied
  • Query Regarding QXmlStreamReader API

    Solved
    11
    0 Votes
    11 Posts
    547 Views
    B
    @ChrisW67 Thanks Chris, this was the first time , I have posted a question on any forum. So because of this ,may be linguistic issue was there. I tried to put the my query as expressive as I can. Once again, Thanks Chris.
  • how to let VideoFrame paint from (0,0) when scale

    Solved
    2
    0 Votes
    2 Posts
    126 Views
    C
    @Quiccz Compute the size that the video should scale to with aspect ratio preserved then paint it (without Qt::KeepAspectRatio) using that size and not the frame dimension.