Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Warning when cancel download file?

    Unsolved
    7
    0 Votes
    7 Posts
    845 Views
    S
    @Kien-Bui for me, I called deleteLater 2 times while I set the m_reply as null after the first time, so the second time Qt warned me QCoreApplication::postEvent: Unexpected null receiver correctly. That behavior was because I forgot that calling abort results in emitting the finished signal. Just for testing, wrap the deleteLater with a null checking if statement. if (this->reply != nullptr) { this->reply->deleteLater(); Also, you can use the delete with care if you like.
  • QNetworkAccessManager->get without VPN returns "Connection closed" from the server

    Unsolved
    4
    0 Votes
    4 Posts
    329 Views
    C
    @ChrisW67 they both run on the same machine. they both are in the same Qt project, first code snip is in qml file, the second code snip is in cpp file. Both "Ocp-Apim-Subscription-Key" has the same value, the baKey just want to show the 'conversion'.
  • Timeout timer deleting inside fnx reading Modbus reply

    Unsolved
    4
    0 Votes
    4 Posts
    238 Views
    qtprogrammer123Q
    @jsulm yes i am, after errorOccured finished signal comes anyway
  • QtGraphs vs QtCharts vs QtDataVisualization

    Unsolved
    2
    3 Votes
    2 Posts
    1k Views
    A
    @habersaa According to Qt Graphs docs, they are still in technology preview. Which is probably why you don't get documentation in released versions. I believe they are meant to replace Qt Charts. I would not hold my breath for a pure QWidget-based implementation, besides integrating them using QQuickWidget of course.
  • 0 Votes
    2 Posts
    584 Views
    R
    @rnayabed Which OS (and version) are you running ?
  • QT 6.7 and camera dialog issues

    Solved
    3
    0 Votes
    3 Posts
    257 Views
    H
    @Christian-Ehrlicher Hello. The problem was with pointer initialization. ui->widget_camera_area->show(); I removed this after correcting the pointer initialization in the file. Thanks
  • 0 Votes
    4 Posts
    678 Views
    SGaistS
    @wad11656 hi and welcome to devnet, Another option is to not put the breadcrumb in a layout and position it where you want it. The drawback is that you then also have to manage the resizing yourself.
  • QtLinguist and Plural rules for a new translation language

    Solved
    8
    0 Votes
    8 Posts
    755 Views
    SGaistS
    @Luganda01 thanks for the involvement ! Can you post a link to the patch/ticket ? That way other people may find it more easily :-)
  • Drag and drop to a Pushbutton

    Solved
    33
    0 Votes
    33 Posts
    4k Views
    SGaistS
    @dencla I tested on Ventura with both 5.15.2 and 6.7.0 and your code is working. I just changed the mime type to handle plain text for testing and it's working as expected.
  • QTabwidget - a problem with layouts

    Moved Unsolved
    3
    0 Votes
    3 Posts
    642 Views
    Q
    @JonB Thanks for explanation, I also have found something in the internet here: https://www.youtube.com/watch?v=8JYEdXDhrTY It is without voice, and you will need to grasp why it doesn't work ;-) -- because it does work and make the process very easy. Attention: when you follow the clip and put a new layer on the locked second tab you must(!) click then on the second tab page and only after that press the right button and call the Layer menu. In the menu you must choose "Lay out in a Grid". ;-))) It was fun, in short. ;)
  • Run Commands in terminal using Qprocess in Ubuntu

    Solved
    20
    0 Votes
    20 Posts
    2k Views
    JonBJ
    @Adithya For GNOME terminal I am not finding anything quite as neat. However gnome-terminal -- sh -c 'find / -print ; read x' does the job reasonably (you put your command in place of find / -print, but keep the ; read x after it). If the user waits till the end they can click the "X" to close the window or press ENTER key. If they get fed up watching the output roll by they can press Ctrl+C in the window. This closes the window immediately.
  • Incorrect rendering of frameless window when used in conjunction with Windows Api

    Unsolved
    1
    0 Votes
    1 Posts
    163 Views
    No one has replied
  • Force light mode on system set to dark mode

    Unsolved
    8
    1 Votes
    8 Posts
    16k Views
    A
    In Qt 6.5, a platform-specific option has been introduced to control dark mode behavior (https://doc.qt.io/qt-6/qguiapplication.html#platform-specific-arguments) . We can now customize how the Qt application responds to dark color schemes on the Windows 11 desktop. To enable or disable dark mode, set the environment variable QT_QPA_PLATFORM with the desired value before declaring your QApplication instance. [image: 6fe26ba9-4561-4412-a8cb-14b14eaebd71.png]
  • 0 Votes
    1 Posts
    260 Views
    No one has replied
  • Build problem: can't find include file

    Solved
    13
    0 Votes
    13 Posts
    817 Views
    A
    @JonB Nevertheless, thank you to all of you for the quick response! Great forum here!
  • customizing a QTreeView

    Unsolved
    1
    0 Votes
    1 Posts
    137 Views
    No one has replied
  • modify the graphics view to display information frames

    Unsolved
    4
    0 Votes
    4 Posts
    257 Views
    jsulmJ
    @Blackzero The first link @JonB gave you has an example
  • Saving from Word to PDF

    Solved
    6
    0 Votes
    6 Posts
    900 Views
    jsulmJ
    @Jose-Williams said in Saving from Word to PDF: Will this code work for an online converter like this no
  • QAbstractCameraController: How to implement?

    Unsolved
    1
    0 Votes
    1 Posts
    125 Views
    No one has replied
  • QListWidgetItem selection issue

    Solved
    5
    0 Votes
    5 Posts
    503 Views
    SGaistS
    @strukfit yes you can. QListWidget is just a QListView with a pre-built model.