Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • The inferior stopped because it triggered an exception.

    Unsolved
    2
    0 Votes
    2 Posts
    689 Views
    jsulmJ
    @Pradson said in The inferior stopped because it triggered an exception.: Why am I facing different behavior with same code? Most probably an issue in your code which does not always lead to a crash. But like always is such situations: run your app through debugger and check the stack trace after crash.
  • Terminating a application

    Unsolved
    16
    0 Votes
    16 Posts
    18k Views
    jeremy_kJ
    @Morbius said in Terminating a application: That's good info, that exit() leaves memory leaks. std::exit doesn't invoke destructors for non-static, non-thread-local objects. Private memory is still freed by process termination in most if not all modern operating systems. Otherwise, a program crashing would also leak. The stuff with connect is cute, but a simpler method is to add a public member to yer MainWindow: [...] This creates a situation where code needs to either be aware of whether the event loop has started, or use this variable and QCoreApplication::quit. https://doc.qt.io/qt-6/qcoreapplication.html#quit provides instructions for signaling the event loop to terminate whether or not it has already started: It's good practice to always connect signals to this slot using a QueuedConnection. If a signal connected (non-queued) to this slot is emitted before control enters the main event loop (such as before "int main" calls exec()), the slot has no effect and the application never exits. Using a queued connection ensures that the slot will not be invoked until after control enters the main event loop.
  • Why does `QWebSocket` hang upon receiving a specific `binaryMessageReceived()` signal?

    Unsolved
    2
    0 Votes
    2 Posts
    258 Views
    I
    The issue got fixed after we downgraded Qt6.5 to Qt6.2. After that hang transformed into an internalSslError(). The issue was due to "Windows Secure Channel" coming along with Qt6.5. With Qt6.2, we were able to link the OpenSSL 1.1.1.
  • Problem with widgets in minimal integration of opencv

    Unsolved amm
    7
    0 Votes
    7 Posts
    504 Views
    B
    Oh, dear, the problem has nothing to do with opencv or video capture. If you add a frame to your QLabel like webcamLabel->setFrameShape(QFrame::Box); You will see that's your QLabel above other widgets, so blocking their mouse events. About the "responsive" top part, that's because QVBoxLayout has default 9px margins. If you add layout->setContentsMargins(0, 0, 0, 0); Then they'll be not responsive at all. So the problem can be easily solved after you learn how to properly use layouts to arrange the widgets and not let anyone block others. I think you are just copying the code from somewhere else, right? The orignal example probably doesn't use ui file and only has an empty window. In your case, I would suggest that don't create the layout and the label in the cpp file, but in the ui file with all the other widgets.
  • Do I need mapTo/FromSource() with QSortFilterProxyModel?

    Unsolved
    11
    0 Votes
    11 Posts
    706 Views
    S
    @Christian-Ehrlicher said in Do I need mapTo/FromSource() with QSortFilterProxyModel?: @SamiV123 said in Do I need mapTo/FromSource() with QSortFilterProxyModel?: course in my code I don't interact with the model through the same abstract model interface but use a much better interface But you obviously doing something wrong as you told us. But without code. There's nothing wrong with using an API to deal with your data that doesn't go through some QXYXModel interface.
  • Ubuntu: Qt GUI components appear jumbled and cutoff with Intel GPU

    Unsolved
    10
    0 Votes
    10 Posts
    766 Views
    M
    @anshah You can't rely on fixed sizes because the default font size can be different from one distro to another (or changed by users). [image: Linux1.png] [image: Linux2.png]
  • QPushButton only responds with QApplication::processEvents

    Solved
    15
    0 Votes
    15 Posts
    839 Views
    L
    @leinad Seems like DirectConnection had something to do with it. Thanks.
  • convert Image QML to QImage

    Unsolved
    3
    0 Votes
    3 Posts
    262 Views
    BondrusiekB
    @Bob64 Hi, I tried but it is impossible using property source i.e i want to proccess Image form ImageCapture(It captures image from camera). If I debug source value I get this value "image://camera/preview_0" from source property and I can't convert it to QImage.
  • I checked an error while running python on Raspberry Pi.

    Unsolved
    2
    0 Votes
    2 Posts
    193 Views
    jsulmJ
    @BAKI said in I checked an error while running python on Raspberry Pi.: It seems that the Raspberry Pi OS lite version does not support GUI. By default on most Linux distributions X11 does NOT support connections from applications started as root (like you do with sudo). Why are you starting your app as root?
  • QModelIndex, QSqlQueryModel error

    Solved
    6
    0 Votes
    6 Posts
    437 Views
    yy_pc_programmerY
    @SGaist Thank you soo very much.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    11 Views
    No one has replied
  • Do you have any information on how Qt adjusts the window size?

    Solved
    2
    0 Votes
    2 Posts
    182 Views
    C
    @XiaofengXu Qt Widgets Layout Management
  • QT installer framework to set user PATH environment variable

    Unsolved
    13
    0 Votes
    13 Posts
    4k Views
    K
    @Renjith-R hello,Have you found a solution later on,to get only the USER environment or only the system environment variable
  • Can't paint over QVideoWidget in Qt6

    Unsolved
    3
    0 Votes
    3 Posts
    372 Views
    M
    @SGaist Ok thanks! I will try to do that but I am really not an expert :)
  • Window resize when hide widgets

    Unsolved
    2
    0 Votes
    2 Posts
    249 Views
    SGaistS
    Hi, From the top of my head, you should call resize using sizeHint as input.
  • This topic is deleted!

    Unsolved
    9
    0 Votes
    9 Posts
    51 Views
  • 0 Votes
    6 Posts
    6k Views
    S
    for me too only with debug mode this happens onecore\windows\directx\database\helperlibrary\lib\directxdatabasehelper.cpp(652)\d3d9.dll!00007FF80BA4BBD5: (caller: 00007FF80BA4B6DC) ReturnHr(1) tid(6c98) 80004002 No such interface supported onecore\windows\directx\database\helperlibrary\lib\directxdatabasehelper.cpp(652)\d3d9.dll!00007FF80BA4BBD5: (caller: 00007FF80BA4B6DC) ReturnHr(2) tid(6c98) 80004002 No such interface supported
  • Selecting a specific QScreen based on a configuration and the screen's name

    Solved screen gui
    3
    0 Votes
    3 Posts
    699 Views
    D
    @jsulm Okay, I'll try that. On Linux though, are the screen names typically the connectors? If so, they'd be unique enough for me, since this application is Linux only.
  • generate pdf

    Unsolved
    3
    0 Votes
    3 Posts
    697 Views
    V
    @mrjj thank you