Skip to content
  • QSqlQuery::prepare: database not open

    Solved General and Desktop qtcreator qoci database open
    7
    0 Votes
    7 Posts
    3k Views
    L
    @mostefa Thanx mate
  • 0 Votes
    8 Posts
    4k Views
    A
    thanks for your help, I have tried to edit my odbc.ini the Mac refused to save the file... That's why I gave up. As an intern, it's my tutor training who said to me to look at a native component. But if I can't find any solution I will come back to the first idea :)
  • 0 Votes
    5 Posts
    21k Views
    kshegunovK
    Hello, my app wasn't able to create an empty file due, for example, to insufficient permissions: shall I call file.close() anyway? No you're not required to. my app was able to create an empty file: shall I call file.close() Again, you're not required to. You can call it if you wish, but by default the QFile instance will close the file when it goes out of scope. Moreover calling close() on an unopened file is permitted, but it does nothing. The I want to add some text to the file, but I do not want to interact with it here: I pass the file name to a function which is taking care of it. Don't reopen the file on each write, it's a somewhat heavy operation. Have a member variable, open it once and write as much as you'd like. Now, because of all the previous checks, I shouldn't have to check if file exists or if I can open it, right? Wrong. No one is guaranteeing you that the file exists. On windows a file will (usually) be locked when opened, but on Linux the user can delete it even while you're writing onto it. So don't skip the checks. Also as I mentioned above, don't reopen the file on each write. Kind regards.
  • [resolved]Open file dialog in webView

    QML and Qt Quick webview filedialog open
    12
    0 Votes
    12 Posts
    7k Views
    M
    Problem resolved, link to the solution
  • Draw elements above Scene Graph

    QML and Qt Quick quick scene graph open
    3
    0 Votes
    3 Posts
    2k Views
    p3c0P
    Hi @Pheelbert, Make use of QQuickWindow::beforeRendering signal to draw the OpenGL stuff beneath QML scene. Have a look at this flow for more info, especially Pt. no. 8 and the example suggested by @SGaist.
  • 0 Votes
    1 Posts
    607 Views
    No one has replied