Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. open
    Log in to post

    • SOLVED QSqlQuery::prepare: database not open
      General and Desktop • qtcreator database qoci open • • Lasith  

      7
      0
      Votes
      7
      Posts
      1761
      Views

      @mostefa Thanx mate
    • UNSOLVED Crash when opening a SQL Server or Access database (OS X)
      General and Desktop • database mac crash open • • Amott  

      8
      0
      Votes
      8
      Posts
      3306
      Views

      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 :)
    • UNSOLVED How do I correctly use QFile::open() and QFile::close()?
      General and Desktop • qfile close open • • alogim  

      5
      0
      Votes
      5
      Posts
      16399
      Views

      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 • • modjo756  

      12
      0
      Votes
      12
      Posts
      5096
      Views

      Problem resolved, link to the solution
    • Draw elements above Scene Graph
      QML and Qt Quick • quick scene graph open • • Pheelbert  

      3
      0
      Votes
      3
      Posts
      1304
      Views

      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.
    • Error when opening a second window from clicking a button
      General and Desktop • qt5 window open second • • rebecca_stacy  

      1
      0
      Votes
      1
      Posts
      438
      Views

      No one has replied