Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.5k Posts
  • How to catch QSystemTrayIcon quit event

    4
    0 Votes
    4 Posts
    3k Views
    D
    yep, should also help you
  • QSettings how to save QMap<QString,int> into configuration file

    7
    0 Votes
    7 Posts
    6k Views
    G
    [quote author="peppe" date="1312109506"]The thread's title is not HTML-escaped. Thus the <> symbols in the template break things.[/quote] That was the problem, I replaced the tags by the HTML escape sequences now...
  • Got off the encoding

    15
    0 Votes
    15 Posts
    7k Views
    R
    I find it, it was CP866 Many thanks for your help!
  • Icon in pushbutton does not resize

    5
    0 Votes
    5 Posts
    16k Views
    EddyE
    You could use an event filter, Here is an example : In the constructor of your class where you put the pushbutton @ pushButton->installEventFilter(this);@ Then add this definition in the cpp file of yourClass(derived from QMainWindow in this example). Don't forget it's declaration. @bool YourClass::eventFilter(QObject *object, QEvent *event) { if (pushButton == object && event->type() == QEvent::Resize) { qDebug() << "button was resized!"; pushButton->setIconSize( QSize( pushButton->size().width(), pushButton->size().height() )); }   return QMainWindow::eventFilter(object, event); }@
  • [Solved] How to skip fast keystroke in search?

    7
    0 Votes
    7 Posts
    3k Views
    C
    [quote author="Andre" date="1312046102"]I wrote a "wiki article":http://developer.qt.nokia.com/wiki/Delay_action_to_wait_for_user_interaction on this. You might want to take a look at it. [/quote] Thank you Andre !
  • [SOLVED] Overwrite specific bytes without reading the whole file, QFile

    6
    1 Votes
    6 Posts
    4k Views
    S
    [quote author="faenil" date="1312059979"]I'll try it tomorrow morning and check if it's solved ;) thanks for the tip anyway ;) [/quote] Even better! :-)
  • I cannot compile a simple "hello" project

    7
    0 Votes
    7 Posts
    4k Views
    R
    [quote author="mcII" date="1312043464"]Thank you for your help. My background is from the "old" school of MS DOS but so far I have very little knowledge of the equivalent in the Mac world. I have no clue about setting environment variables in Mac I don't want to use this forum to learn these basics. I will look for books where I can learn as much as I need of the Mac Terminal. If after my education effort I have problems, I will come to this forum for help. Thanks again.[/quote] Everything is fine, this forum was created for this purpose and you can ask about all.
  • Error in creating Qthreads and pthread

    6
    0 Votes
    6 Posts
    4k Views
    S
    hi, actually i have implemented client-server application which will read only if we press read button in client side and server side but now i ve designed normal chat messenger so i used qthreads to implement which can read from server and also server should read from client independently.. so i used qthreads and also imported widget class which has subclass of qwidget . but while executing i got some unknown error like debugger crashed , couldn't find it.. code i ve already posted above. in mythread class just done multiple inheritence with base class of qthread and widget class and declared run function alone and in .cpp file created thread object and use start function to initiate run function where i have defined widget object function.. hope now everyone understand.. please help me to find out the error and just give me the suggestion to use qthread thanks in advance, shakthi
  • How to get Cpu Processor id

    2
    0 Votes
    2 Posts
    6k Views
    D
    Although Qt detects at runtime the CPU feature set (cf. src/corelib/tools/qsimd.cpp), it does not export any function to access that (nor any other CPUID information). Write your small piece of assembly code to gather that information.
  • 0 Votes
    5 Posts
    11k Views
    U
    Thanks working
  • How to create COM dll in QT

    2
    0 Votes
    2 Posts
    2k Views
    G
    You can use the "ActiveQt framework":http://doc.qt.nokia.com/4.7/qt-activex.html
  • Build my app for Windows, Mac OS and linux from Linux

    5
    0 Votes
    5 Posts
    4k Views
    C
    You need build them separately on Windows, Linux and Mac. And upload them to your server.
  • QString and access violation

    9
    0 Votes
    9 Posts
    8k Views
    G
    I tried it and it works like a charm. Thanks again.....George
  • [ Solved ] From HTML to QString Utf8

    3
    0 Votes
    3 Posts
    8k Views
    B
    This: @QTextDocument document; document.setHtml(text); document.toPlainText(); @ does the trick. Thanks !
  • Qt and SQLite -- Build issues

    4
    0 Votes
    4 Posts
    4k Views
    J
    [quote author="Lukas Geyer" date="1311958856"]Remove @ #include <QtSql/QSQLiteDriver> @ and make sure that @ QT += sql @ is in your .pro file.[/quote] It builds now! Thank you so much! :D :D
  • How to share one QFileSystemModel with two Views?

    4
    0 Votes
    4 Posts
    2k Views
    EddyE
    Have a look at this "wiki page":http://developer.qt.nokia.com/faq/answer/how_can_i_implement_my_own_proxy_model_that_is_more_advanced_than_just_sort. It's almost what you want for the proxy. They use QStandardItemModel instead, but it can give you a good start.
  • Swap widgets in place, without destroying them in layout.

    17
    0 Votes
    17 Posts
    16k Views
    M
    Ah, very good. Thanks a lot! That makes sense.
  • QVariantMap/QObject store bag

    16
    0 Votes
    16 Posts
    10k Views
    G
    bq. If you are so certain about your design, then why come here and ask for advice on it in the first place? Because I need to somebody help me find possible troubles which I cannot see. I told - I did not use QMap before. Thanx for advices. All was helpful.
  • [solved] Qt on Solaris10

    11
    0 Votes
    11 Posts
    6k Views
    M
    If you've got it working, please be kind and add [Solved] to the title of the original post. Thanks!
  • SOLVED: More randomness

    4
    0 Votes
    4 Posts
    3k Views
    C
    Yep! That's what I did.