Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.1k Topics 454.9k Posts
QtWS25 Last Chance
  • Suggestion: Stand up Public Symbol Server for Qt Symbols

    Unsolved
    4
    1 Votes
    4 Posts
    112 Views
    Christian EhrlicherC
    ... or simply install the debvug symbols with the Qt online installer. What's the point here?
  • Starting second wsl QProcess kills the first one

    Solved
    4
    0 Votes
    4 Posts
    81 Views
    M
    @JonB You're right. I always launch one wsl process in one cmd window, and wsl processes in different cmd windows can live with each other. Now I tried launching multiple wsl processes in one cmd using start /b, the result is the same as this demo application: all wsl processes will exit immediately. So the problem is multiple wsl processes cannot be launched by a single parent. It has nothing to do with QProcess.
  • Best practices forward-declaring QStringList (and other containers) in Qt6?

    Solved
    2
    0 Votes
    2 Posts
    89 Views
    Christian EhrlicherC
    Include QStringList header
  • Visual issue with QRadioButton on Android – no selection dot shown

    Unsolved
    4
    0 Votes
    4 Posts
    92 Views
    jsulmJ
    @thomasGl You can do that with https://doc.qt.io/qtdesignstudio/
  • 0 Votes
    1 Posts
    36 Views
    No one has replied
  • [Unit Test Coverage] How can the industry improve QT code coverage

    Unsolved
    4
    0 Votes
    4 Posts
    97 Views
    SGaistS
    Hi and welcome to devnet, For testing frameworks, Qt already provides the QTest module which works pretty nicely. As for the rules, there's mainly one: test both happy and unhappy code paths. That way you ensure that your code is working when everything goes well as well as when issue arise.
  • QHttpServer - how to determine request processing time?

    Unsolved
    2
    0 Votes
    2 Posts
    117 Views
    SGaistS
    Hi, I don't think you missed anything. One possible I can imagine is to create a wrapper function that you would use in your route that would measure the execution time of the real function that you would have passed to said method.
  • Question about store data

    Unsolved
    3
    0 Votes
    3 Posts
    94 Views
    D
    @Pl45m4 honestly, I haven't decided how best to implement it, I thought maybe there was another alternative? I didn't fully understand what you meant, just store in the auxiliary structure not the data but the list of connections?
  • MacOS file system icons have changed

    Solved
    12
    0 Votes
    12 Posts
    500 Views
    S
    Seeing this behavior on Windows with 6.8.3, was there a QTBUG tracking this behavior and/or fix that may have more information?
  • Access violation at qsql_oci when executing/preparing QSqlQuery

    Solved
    7
    0 Votes
    7 Posts
    204 Views
    Y
    @Christian-Ehrlicher Thank you. I found that after I add -DCMAKE_BUILD_TYPE=Debug when I build qoci the qsqlocid.dll, etc. are built and installed, then the problem can be fixed
  • noexcept build errors after updating to 6.9.0

    Unsolved
    3
    0 Votes
    3 Posts
    84 Views
    G
    @Christian-Ehrlicher I'm using gcc 8.5.0 I honestly can't tell where in the code the error is occuring because the output is so long. I've been building this applciation for years using various versions of Qt, but I haven't seen these errors before. It builds without error under Qt 6.6.3. I can try a simple program to see if I also get the errors there.
  • QDialog with Qt::WindowModal on mac

    Unsolved
    6
    0 Votes
    6 Posts
    742 Views
    K
    Currently, my dialog is something like this (see attached image) i..e no title bar. I want it to be a modal which blocks interaction with it's parent and at the same show title bar. Above solution doesn't works for mac. However below code works fine on ubuntu 22.04. I think this is platform specific issue. class MyDialog(QtWidgets.QDialog): def __init__(self, parent=None): super().__init__(parent=parent) self.setWindowTitle("My Dialog") # Set modality to WindowModal self.setWindowModality(Qt.WindowModal) # Set appropriate window flags # self.setWindowFlags(Qt.Dialog | Qt.Window) # Set up the layout layout = QtWidgets.QVBoxLayout(self) layout.addWidget(QtWidgets.QLabel("This is a dialog!")) self.setLayout(layout) class MainWindow(QtWidgets.QMainWindow): def __init__(self): super().__init__() self.setWindowTitle("Main Window") self.setGeometry(100, 100, 300, 200) # Add a button to the main window self.button = QtWidgets.QPushButton("Show Dialog", self) self.button.setGeometry(100, 80, 100, 40) self.button.clicked.connect(self.show_dialog) def show_dialog(self): dialog = MyDialog(self) # Create dialog with main window as parent dialog.show() # Show the dialog (exec creates a modal dialog) [image: 2b98569d-09be-42a2-8c14-987c693745f7.png] This is how it looks on Ubuntu---- [image: c6c43930-8717-429d-af63-363e1ffd849c.png]
  • 0 Votes
    5 Posts
    142 Views
    JonBJ
    @mirro As @SGaist says. stackoverflow is really the reference for questions about programming, be that C++ or PowerShell, e.g. start from https://stackoverflow.com/questions/tagged/powershell. You will have to be quite "formal" in a posted question, e.g. your code would need posting as text not as a screenshot.
  • QPdfDocument crashes on linux

    Unsolved
    2
    0 Votes
    2 Posts
    91 Views
    hskoglundH
    Looks like a debug build to me, maybe mixing release and debug is not a good idea on a Raspberry Pi. Also, it is a Raspberry 5 not a 4, right?
  • 0 Votes
    1 Posts
    79 Views
    No one has replied
  • Qt 6.9 ds-build conflicts with ds-src

    Solved
    5
    0 Votes
    5 Posts
    147 Views
    Y
    @Christian-Ehrlicher Hi, I found that if I downgrade CMake to 3.28 and change line 20 back to FetchContent_Populate then the CMake build can run successfully. I learned that different from FetchContent_Populate, FetchContent_MakeAvailable not only downloads and unpacks the content but also automatically adds it to my build by calling add_subdirectory() internally. Aftter I remove add_subdirectory(${ds_SOURCE_DIR} ${ds_BINARY_DIR}) then the CMake build can run successfully
  • 0 Votes
    2 Posts
    78 Views
    Christian EhrlicherC
    I tested it with a recent Qt6 version and could not see any pushbutton at all.
  • 0 Votes
    3 Posts
    81 Views
    L
    I tried all the ViewportUpdating Modes of QGraphicsView but it didn't work. However, when I didn't set QOpenGlWidget to the viewPort of QGraphicsView, triggering an update for a single item in the same scence wouldn't trigger the paint function for other items
  • No supported format in QAudioFormat

    Solved
    2
    0 Votes
    2 Posts
    44 Views
    DanekoD
    I updated to Qt 6.9.0 and Qt Creator 16.0.1 and problem disappeared!
  • QDBusConnectionManager hanging on exit

    Unsolved
    10
    0 Votes
    10 Posts
    594 Views
    M
    Hello Dale, would it be possible for you to share what you did to make it work? Even though you call it a hack it would be interesting to see how it is possible to prevent the code from hanging during shutdown.