Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • 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
  • [Solved] How to create a QListView with QPushButton

    2
    0 Votes
    2 Posts
    3k Views
    L
    for more infos: http://www.qtforum.org/article/24195/qpushbutton-as-delegate-in-a-qtableview.html
  • Decode special characters in Qt

    4
    0 Votes
    4 Posts
    2k Views
    L
    hmm, for example: there is a file named with “?”, maybe it's “?myfile.txt". now, i wanna open the file. of course, i get the file path of the file, and initialize a QFile with file path. the problem is that, the file path, the QString, can not be read correctly, since “?” can not be read, it will displayed as "?". i think it's cause by decoding. and this is what i mean.
  • Stylesheet for disabled QPushButton under Windows 7 Basic Theme

    4
    0 Votes
    4 Posts
    3k Views
    M
    I think this will work Fine. Try this in your Stylesheet, @pushButton->setStyleSheet("background: transparent");@
  • Problems with deploying for mac

    6
    0 Votes
    6 Posts
    7k Views
    V
    QLibraryInfo seems to be indicating that the plugins are loading from the wrong location. It isn't respecting qt.conf(even though it's embedded as a resource in the path (/qt/etc/qt.conf). It also isn't respecting the QT_PLUGIN_PATH environment variable. The library info prints that I'm using are after a QApplication is created so it isn't that. Here's a snippet: @int main(int argc, char *argv[]) { QApplication a(argc, argv); qDebug() << "CORE APPLICATION EXISTS: " << (QCoreApplication::instance() != NULL); qDebug() << "CORE APPLICATION PATH: " << QCoreApplication::applicationDirPath(); qDebug() << "qt.conf " << QFile::exists(QLatin1String(":/qt/etc/qt.conf")); qDebug() << "LIBRARIES LOADED: " << QCoreApplication::libraryPaths(); qDebug() << "PREFIX PATH" << QLibraryInfo::location(QLibraryInfo::PrefixPath); qDebug() << "PLUGINS PATH" << QLibraryInfo::location(QLibraryInfo::PluginsPath);@ Results in: CORE APPLICATION EXISTS: true CORE APPLICATION PATH: "/Users/my_user/my_app/MyApp.app/Contents/MacOS" qt.conf true LIBRARIES LOADED: ("/Users/my_user/QtSDK/Desktop/Qt/4.8.1/gcc/plugins", "/Users/my_user/my_app/MyApp.app/Contents/PlugIns", "/Users/my_user/my_app/MyApp.app/Contents/MacOS") PREFIX PATH "/Users/my_user/QtSDK/Desktop/Qt/4.8.1/gcc" PLUGINS PATH "/Users/my_user/QtSDK/Desktop/Qt/4.8.1/gcc/plugins" The middle entry on libraries loaded actually appears to be from the QT_PLUGIN_PATH export EDIT: I figured out was wrong with qt.conf. I was calling QImageReader::supportedImageFormats() in global scope. Apparently it was causing QLibraryInfo to cache a bad QSettings object.
  • 0 Votes
    2 Posts
    890 Views
    A
    Note that if you get a NetworkError, then there is no http response error code to be had. For HTTP, you need to have a working network first...
  • Mac OS X: context of shortcuts in global menu

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    5 Posts
    5k Views
    shavS
    [quote author="Lukas Geyer" date="1351670161"][quote author="shav" date="1351663862"]How I can check correction data in my QList variable if when I try to use isEmpty method application will crash?[/quote]Run your application in a debugger. It will automatically place you at the position your application crashed. If not, put a breakpoint right before the call to QList::isEmpty() and step through. I would valgrind the application as well (or any other memory corruption detection tool).[/quote] Thanks! I found the problem.
  • [Solved]Change text cursor color in QTextEdit

    14
    0 Votes
    14 Posts
    17k Views
    M
    If you are using setTextColor(), @TextEdit->setTextColor(Qt::white);@ will change the Text Color Alone. But the Text Cursor will remain the default Black in color...