Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.1k Topics 454.6k Posts
QtWS25 Last Chance
  • QMutex and unique_lock ?

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    SPlattenS
    @JKSH Thanks
  • This topic is deleted!

    Solved
    1
    0 Votes
    1 Posts
    32 Views
    No one has replied
  • Linguist in a Shared Library

    Solved
    3
    0 Votes
    3 Posts
    410 Views
    F
    @Christian-Ehrlicher perfect! Thank you!
  • database is locked Unable to fetch row

    Unsolved
    2
    0 Votes
    2 Posts
    2k Views
    JonBJ
    @Tmalfrere said in database is locked Unable to fetch row: database is locked Unable to fetch row I don't use SQLite, but I think you should start by reading https://stackoverflow.com/questions/17057420/qt-sqlite-unable-to-fetch-row-database-locked. If that does not answer, there are other hits from Googling: database is locked unable to fetch row sqlite.
  • QTableWidget: Cells updating event

    Solved
    5
    0 Votes
    5 Posts
    399 Views
    mrjjM
    @sitesv Hi Yes, that would be a job for a delegate. here is a sample where its a rating box https://doc.qt.io/qt-5/qtwidgets-itemviews-stardelegate-example.html but it could draw anything.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Is there a way to check availability local server with timeout in Qt?

    Solved
    20
    1 Votes
    20 Posts
    1k Views
    T
    @jsulm Thank you
  • QSvgWidget not displaying file completely

    Solved
    14
    0 Votes
    14 Posts
    1k Views
    W
    Just in case somebody stumbles upon this thread and also tried to use the Cairo SVG package with QSvgWidget - forget about Cairo as nice as it sometimes could be, as there is an R package ggiraph with a simple function dsvg(filename,...) and it produces a SVG file that is fully supported by Qt.
  • Translate Installer Framework for unsupported language

    Unsolved
    1
    0 Votes
    1 Posts
    117 Views
    No one has replied
  • Send event on hover of QMenu items

    Solved
    4
    0 Votes
    4 Posts
    565 Views
    S
    Thanks for the help , i was able to find a solution .
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    27 Views
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    22 Views
  • Transfer the size of the font in the operating system to the Python Qt program

    Unsolved
    2
    0 Votes
    2 Posts
    114 Views
    P
    My solution: def applicationtypesetting(appv, fontsize): font = appv.font() font.setPointSize(font.pointSize() * fontsize) appv.setFont(font) def main(): app = QtWidgets.QApplication([]) win = MainWindow() if len(sys.argv) >= 2: applicationtypesetting(app, int(sys.argv[1])) else: applicationtypesetting(app, 1); win.showNormal() app.exec_() If someone has a visual impairment they can call the program as follows: python.exe PQTTexteditor.py 2 Question: Do the Python professionals have a better idea?
  • Can QTableWidget header text be vertical, but cell text horizontal?

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    D
    OK thanks, I'll look into the subclassing and see if it gives me any success.
  • QSpinBox - is there a way to "force" lose focus?

    Unsolved
    10
    0 Votes
    10 Posts
    4k Views
    J.HilkJ
    @mzimmers said in QSpinBox - is there a way to "force" lose focus?: @JonB said in QSpinBox - is there a way to "force" lose focus?: findChild Now that is very cool...hadn't seen that before. I'm guessing that's a relatively expensive function, though, so you might not want to use it in a slot that's servicing something like a spin box? Then again, today's computers are so damn fast...who knows. Its fine if you call it on a QWidget that does not have many children, like for example a QSpinBox, Just don't call it repeatedly on your MainWindow as it is recursive will will take considerable amount of time, even on modern computers!
  • How to prevent the mouse click event from happening when the button is Disabled

    Unsolved
    42
    0 Votes
    42 Posts
    14k Views
    jsulmJ
    @Daniil-0 said in How to prevent the mouse click event from happening when the button is Disabled: for(int i=0;i<100;i++) { bar->setValue(i); QThread::usleep(30000); //QCoreApplication::processEvents(); } Never do such things in event driven applications! You block Qt event loop! Use a QTimer for updating the progress dialog.
  • Disconnect/Connect using RAII paradigm

    Solved
    7
    0 Votes
    7 Posts
    430 Views
    E
    Yeah, you are right, I found out that disabling all of them should not be a problem. Thanks
  • QImage buffer structure

    Solved
    4
    0 Votes
    4 Posts
    507 Views
    fcarneyF
    @Christian-Ehrlicher said in QImage buffer structure: ctors show you that it's a contiguous buffer since some of them take exactly such a buffer without copying the buffer Yes, but I didn't know if the internal implementation was different in that case. I really needed to look at the code and make sure. The documentation didn't lead me to believe this for certain. It is a good point though. Which is part of the reason I wondered.
  • Detecting QStack overflow

    Solved
    15
    0 Votes
    15 Posts
    951 Views
    AlveinA
    Thank you very much for your advice. Freed blocks will get re-used, at this point, for another allocation. May depend on whether it's an odd or even day of the week ;) Yes, I'm aware of that. My intention was simply avoiding my program to crash and tell the users what's happening, letting them to stop the process if they wish. The code executed for backtracking does not itself do any allocation, which might fail where you are. There are a lot of things you might call without realizing they do some allocation! Backtracking, for me, means just popping out items from the private stack. Remember this is about simulating recursion, so such backtracking is also simulated. In the end, there's two options for the program, either using the recently freed memory, or behaving like if there was no more, in case that memory was immediately seized by other things. Each option has been considered and handled by code.
  • QMenuBar creates QThread?

    Solved
    11
    0 Votes
    11 Posts
    299 Views
    HunterMetcalfeH
    @Christian-Ehrlicher and @SGaist thank you! These are the details for which I was looking. @Christian-Ehrlicher you're right that I don't have the debug information for Qt5XcbQpa. That must be why I have the '???' for the function call. I wanted to rule this out as a potential issue with the crash I'm seeing. Thank you