Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • Problems writing a txt file

    4
    0 Votes
    4 Posts
    2k Views
    L
    You're welcome. QDataStream places some information in front of each item in case it is required to correctly deserialize the item (for example the length of the string as in your case).
  • QSqlRelationalTable does not delete row in SQLite [SOLVED]

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • 1 Votes
    8 Posts
    13k Views
    L
    So you basically want to show a main window with a tabbed interface. Am I right? That's actually quite easy, because a QTabWidget can be used to display any kind of QWidget subclass, be it QTextEdit or a subclass of it. @ class FileEdit : public QTextEdit // or any other class that is or // directly or indirectly inherits QWidget { ... bool internalVariable; } class MainWindow : public QMainWindow { public: MainWindow() { tabWidget_ = new QTabWidget; tabWidget_->addTab(new FileEdit, QStringLiteral("File 1")); tabWidget_->addTab(new FileEdit, QStringLiteral("File 2")); ... setCentralWidget(tabWidget_); } private: QTabWidget *tabWidget_; } @ Brain to terminal.
  • QDebug lines

    6
    0 Votes
    6 Posts
    4k Views
    G
    [quote author="tilsitt" date="1355915223"]I tried the following to detect debug and release config: @ CONFIG(debug, debug|release) { DEFINES += DEBUG } else { DEFINES += QT_NO_DEBUG_OUTPUT } @ It works for me to disable qDebug() output.[/quote] I'm sorry but I'd like to know: where did you add the above lines? I added my lines on my qt .pro file and it seems they don't work!
  • New to Qt pls suggst any book or website

    6
    0 Votes
    6 Posts
    2k Views
    A
    thanks to all who replied
  • Using Qt to get 64 bit programs

    3
    0 Votes
    3 Posts
    1k Views
    R
    Hi Peter, At debugger I just could see a segmentation fault warning. Thanks.
  • What are GraphicView's "Enter" and "Leave" events?

    3
    0 Votes
    3 Posts
    948 Views
    A
    Naturally, but for almost all other events, there are GraphicsSceneEvent equivalents.
  • How to complie QDbus on Qt5.0

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 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