Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.4k Posts
  • Format XML file

    6
    0 Votes
    6 Posts
    3k Views
    M
    You cannot change a file on disk, XML or otherwise, without writing to it. Would you care to explain why you are so vehemently against rewriting it using QXmlStreamWriter or QDomDocument, as those are your best bets for doing what you would like to do? Your demands for another concept are very confusing (as well as worded somewhat rudely.) Even if you didn't want to use the XML classes to parse and rewrite your file, you would still have to read it and process it and write it out somehow. It sounds as if you're wanting a magic method to shove some white space into arbitrary parts of in the middle of a preexisting file. That is simply impossible to do without rewriting your file some way.
  • [Solved] Qt application not start on another computer.

    10
    0 Votes
    10 Posts
    4k Views
    podsvirovP
    This is good news! Now be a good boy, and add [Solved] to the beginning of a stream header. When I create the installer on Windows, use the "Dependency Walker":http://www.dependencywalker.com/ . This is a GUI application that shows the dependencies needed to run the application (this does not apply to plug-ins).
  • How to disable font fallback in Qt 5.0

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Compiler for QT5 Windows

    3
    0 Votes
    3 Posts
    5k Views
    M
    sierdzio: Thank you for your response. While waiting for an answer I downloaded QT5 to my Mac (Mountain Lion) and I was able to run a couple of examples and create a desktop widget application immediately after QT5 self installed in my machine. For the time being this satisfies my needs. I will follow your advice if at some point I have to work with QT5 for Windows. Best regards FormaxMC
  • 0 Votes
    3 Posts
    4k Views
    S
    Check the: @QNetworkReply::sslErrors ( const QList<QSslError> & errors )@ signal documentation which states that you should call: @ignoreSslErrors() @ from the slot connect to the signal to receive the behaviour you want to.. Edit: you already found it! :-)
  • Resize window but preserve aspect ratio?

    11
    0 Votes
    11 Posts
    16k Views
    C
    Hi, first you forgot const modifier for heightForWidth function. Second I didn't tested on top level window which seems to be the problem, see "Trading Height for Width":http://doc.qt.digia.com/qq/qq04-height-for-width.html
  • QScriptEngine using newFunction() on non-static functions.

    2
    0 Votes
    2 Posts
    1k Views
    I
    I'm afraid it's not possible. I'm adding scripting into my app using prototypes to wrap objects. Take a took to it.
  • Qt 5.0: QQuickView blocks GUI thread

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • App does not start and any questions

    4
    0 Votes
    4 Posts
    2k Views
    sierdzioS
    So it's more likely to be a Qt bug.
  • Compile QtDBus on windows, using KDE libdbus

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • QtCreator2.6.1 cannot input method

    3
    0 Votes
    3 Posts
    1k Views
    X
    ok. i already post it bug report. https://bugreports.qt-project.org/browse/QTCREATORBUG-8471
  • Trying to resolve sub-classing QThread - or not

    20
    0 Votes
    20 Posts
    7k Views
    JKSHJ
    Yes, the new "worker object" method is not ideal. Its main weakness is the extra complexity and overhead. I guess we'll need to ask ourselves which poison is more tolerable for the scenario at hand: A lengthy approach, or a counter-intuitive approach? Unfortunately, the documentation update did not pass the review process in time for the Qt 5 release -- there were more pressing issues for the reviewers to take care of, and I think not all the higher-ups are interested in making the change. Let's see if they get through for the Qt 5.0.1 release, scheduled for late January 2013.
  • Moving an object to a different thread

    2
    0 Votes
    2 Posts
    1k Views
    JKSHJ
    Call moveToThread() from the current thread to "push" the object to a different thread. Qt has that constraint because it's dangerous to "pull" an object from a different thread: What will happen if the object is moved, while it is in the middle of processing data in its original thread?
  • Remove row form QSqlTableModel problem?

    4
    0 Votes
    4 Posts
    4k Views
    M
    thx too
  • Qt 5.0 RC 1 updated examples

    10
    0 Votes
    10 Posts
    4k Views
    JKSHJ
    [quote author="astodolski" date="1355144658"]Thanks, that's helpful. However, shouldn't there be some even basic migration notes included to support a release candidate?[/quote]Looks like there is: http://qt-project.org/doc/qt-5.0/qtdoc/portingguide.html [quote]Where exactly is "here"? Looking at the front end for reporting looks like there are lots. Understand I was following Eddy's suggestion. It may have been better solved on the this forum than calling it in as a bug. That's why I started the thread.[/quote]Sorry for being vague; I meant "we don't have a bug on our hands here". Did the modifications to the .pro file help?
  • ASSERT failure in QMutex::lock caused by copy to clipboard

    4
    0 Votes
    4 Posts
    6k Views
    U
    Hi! I'm having a very similar problem (perhaps even the same). I have a qtextedit, and when I copy the content using Ctrl+C and the shutdown the application I end up with the same assertions. You can work around this by clearing the clipboard when the application shuts down, but whats the correct way? BR, Ulf.
  • [SOLVED] Is QBoxLayout::addLayout broken?

    7
    0 Votes
    7 Posts
    4k Views
    U
    So in my case QLayoutItem::widget() returns a 0, I didn't really bother to check it out once did the trick... still can save a runtime type check call
  • 0 Votes
    1 Posts
    631 Views
    No one has replied
  • QT + OSG + Mac focus issue

    1
    0 Votes
    1 Posts
    963 Views
    No one has replied
  • QNetworkReply doesn't emit the signal finished()

    4
    0 Votes
    4 Posts
    2k Views
    T
    Ok. I wanted to see if the reply wasn't finished before your connect (so the signal would be emitted before being connected to your slot). Maybe you can try "QNetworkAccessManager::finished()":http://qt-project.org/doc/qt-4.8/qnetworkaccessmanager.html#finished instead of QNetworkReply signal. I am not sure it will change anything, but I have no other idea :( .