Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • QDir::entryList doesn't assign twice

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Absurd Qt QUI memory leak

    2
    0 Votes
    2 Posts
    2k Views
    K
    Please check out the "forum guidelines for code wrappings":http://qt-project.org/wiki/ForumHelp#e3f82045ad0f480d3fb9e0ac2d58fb01
  • 0 Votes
    5 Posts
    2k Views
    R
    the issue was that windows xp does not have the drag and drop functionality built in. So one needs to install a patch before getting it to work..
  • [SOLVED]QThread, the right way and sleep()

    4
    0 Votes
    4 Posts
    4k Views
    JKSHJ
    Just for your interest, the sleep functions are public in Qt 5
  • How to work with files from many folders inside one folder?

    2
    0 Votes
    2 Posts
    1k Views
    J
    Take a look at this "QFile::copy()":http://doc.qt.digia.com/qt/qfile.html#copy One example is on stackoverflow "here":http://stackoverflow.com/questions/3227622/how-to-copy-a-image-file-in-qt If you want to copy from different directoriey, you'll need to use upper code with combination of QDir class and recursively search for files. With "this":http://qt-project.org/doc/qt-4.8/qdir.html#entryList you can get all files and directories in a specific directory. Note: First to returns are ussualy "." and "..", which mean current and parent directory. Regards, Jake
  • Qt 4.8.3 dont compile my resource files!!

    3
    0 Votes
    3 Posts
    3k Views
    I
    OK, I confirmed my original idea. Google knows everything haha "Cannot find rcc.exe, attempts to search in current working directory":https://bugreports.qt-project.org/browse/QTBUG-27237
  • [Solved] How to restore QTextEdit original background color?

    12
    0 Votes
    12 Posts
    21k Views
    M
    yes it work full example @#include <QtGui/QApplication> #include <QWidget> #include <QTextEdit> int main(int argc, char *argv[]) { QApplication a(argc, argv); QWidget w; QTextEdit *txtEdit = new QTextEdit(&w); // to change backgournd color txtEdit->setStyleSheet("background-color: rgb(255, 1, 255)"); // to reset it to default color ... txtEdit->setStyleSheet(""); w.show(); return a.exec&#40;&#41;; } @
  • [SOLVED] How to select the window frame in a mouseMoveEvent?

    1
    0 Votes
    1 Posts
    762 Views
    No one has replied
  • 0 Votes
    2 Posts
    3k Views
    C
    You may try this: reimplement the protected function: @protected: void closeEvent(QCloseEvent *event);@ @void yourwidget::closeEvent(QCloseEvent *event) { anyprocess.close(); //from void QProcess::close () [virtual] - documentation //Closes all communication with the process and kills it. After calling this function, QProcess //will no longer emit readyRead(), and data can no longer be read or written event->accept(); }@
  • [SOLVED] Cursor behavior in QTextEdit after applying stylesheet

    5
    0 Votes
    5 Posts
    3k Views
    H
    Hi Jake, I tried using eventFilter() and pass it to QTextEdit class...didn't work. But the solution you gave work! Overloading focusInEvent() and focusOutEvent(). Thanks a lot Jake!
  • How to find which network interface is up in Qt

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • HTTP-HTTPS / TCP-UDP gateway application ideas needed

    3
    0 Votes
    3 Posts
    2k Views
    MuratUrsavasM
    Hi @butterface, I know, it's not a good idea to try to use my own encryption algorithm. Therefore using an open one, like AES with a cipher mode would be much better. I'd read some articles that obfuscating Java bytecode causes serious performance loss. But I'm not expert on Java and never tried that on my own. The main idea is to keep symmetric key secret. Maybe it's possible with byte code. Got an idea?
  • Qtextbrowser and using rendering

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • PyQt QApplication takes 10 seconds - can I have a splash screen?

    4
    0 Votes
    4 Posts
    6k Views
    S
    I have found an adequate solution. I installed Qt and PySide, and now QApplication constructor time is about 2 seconds. There is still some lag before my app shows up, but that is my own initialization, and now I can show a splash screen. Long live PySide.
  • [SOLVED] playing m4a audio files on symbian

    2
    0 Votes
    2 Posts
    2k Views
    Y
    This is the solution for the problem in case anyone had similar problem http://www.developer.nokia.com/Community/Wiki/Phonon_Helix_plug-in_fixes_for_Symbian^3_devices
  • Strange behavior with precompiled header on Windows only

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • XML schema validation QXmlSchemaValidator and messagehandler

    2
    0 Votes
    2 Posts
    2k Views
    A
    I have found the answer myself. The error always occured after the previous test had set a decimal value and found that the value read back was marginally different (to the sixth decimal place). When debugging, I had attempted to stop execution at this point, and had placed a QCoreApplication::quit(); statement line. This did not stop the execution and I had forgotten about it, but it had interfered with the XML processing and was causing this error.
  • [Phonon] typedef Phonon::AudioOutputDevice

    3
    0 Votes
    3 Posts
    1k Views
    C
    For example, I am in a voice chat room, like skype. Normally I speak to microphone and those who are in the voice chat room hear what I said. But now I want to play some music for them directly from a music player or my application instead of from the microphone. This is what I need to accomplish. Is it more precise? Any suggestion to do it? I found Virtual Audio Streaming seems can do this, but it's commercial and close source. Since Qt is so powerful, hope there is much easier way.
  • No information about 'QML focusPanel'

    3
    0 Votes
    3 Posts
    1k Views
    A
    [quote author="Riz" date="1351667269"]Check this link "QML FocusPanel Element":http://doc.qt.digia.com/stable/qml-focuspanel.html#details[/quote] there is nothing about focusPanel in that... :)
  • Boost meta state machine and Qt

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied