Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.9k Posts
  • Unregister timer error when deleting menu after qmenu::exec()

    4
    0 Votes
    4 Posts
    2k Views
    T
    It was not entirely clear to me from reading the report whether the fix applied to the qmenu problem or just some other cases mentioned, but I now notice someone mentions that the warning itself has been removed (yeah, I should read more carefully the fist time around...) Based on inspection of the source code, I suspect that the fundamental issue has not been resolved, though, i.e. qmenu still has timers that may be active after the menu is closed and exec() has returned, and that are potentially unregistered twice on destruction. I'll try not to let that bug me...
  • QMessageBox and memory deallocation for a QStackedWidget and QListWidget

    6
    0 Votes
    6 Posts
    3k Views
    M
    Thank you very much for the explanations and illustrations. And for multiple issues on the same topic, point taken, thanks Andre.
  • [SOLVED] How to configure c32.lib correctly?

    3
    0 Votes
    3 Posts
    1k Views
    B
    i am trying to use the code from here http://www.developer.nokia.com/Community/Wiki/Sending_USSD_commands in my computer, i use Qt Creator 2.1.0 based on Qt 4.7.1 (32bit), Windows 7 OS. yes, i need more advice to solve this problem thanks
  • Update resize when changing button's title

    4
    0 Votes
    4 Posts
    2k Views
    B
    Thank you for your answer
  • QUrl schema

    3
    0 Votes
    3 Posts
    2k Views
    R
    Thanks for quick and good response. Sorry missed your comment.
  • QWaitCondition::wait() and QMutex question

    6
    0 Votes
    6 Posts
    8k Views
    C
    Good question, I don't know if each call to wait() on the same wait condition can use a different mutex. If it's not possible you could always resort to using multiple wait conditions, one for each thread that blocks, and put them in a list. Then when you want them all to wake up you call wakeOne() on each wait condition in the list.
  • [SOLVED]Passing a signal to an other dialog.

    13
    0 Votes
    13 Posts
    4k Views
    W
    Indeed, my application hasn't crashed when using that. Only the dialog wasn't showing properly (popping up, but disappearing immediately). But the issue is solved, so I add a [SOLVED]-tag.
  • 0 Votes
    3 Posts
    3k Views
    T
    I got it. It doesn't have to do with ico or other types (but thanks though, using jpg reduced the executable size by 25%). The problem was that I was using Qt 4.8.0 Dlls while the program was compiled with Qt 4.8.1. My mistake. Sorry. I'm keeping this for future reference. Thanks for the help :)
  • Private slots: quit(); not working

    13
    0 Votes
    13 Posts
    11k Views
    D
    [quote author="lapin" date="1336599157"]This is the tutorial I am following: http://doc.qt.nokia.com/4.7/gettingstartedqt.html Please provide me with a pointer to the fixed version.[/quote] I'll give you a hint: The current Qt version is 4.8. Maybe you can figure out the link to the latest version yourself ;)
  • Can't debug in qt sdk 1.2-during startup program exited with code 0x0!

    5
    0 Votes
    5 Posts
    3k Views
    M
    I've the same problem here guys but with (plain C++ project ) So please help?
  • Inheriting QThread whitout calling start(), any problem ?

    5
    0 Votes
    5 Posts
    4k Views
    D
    Hm as long as QThread isn't owned by workObject it should be okay for the workObject to launch its thread and move itself there. I personally like it more when a third instance controls the thread and workObject creation and brings both together. This is helpful e.g. when you want to take the threads from a thread pool and feels slightly cleaner, because it keeps the achtual worker and the "low-level" thread handling separated.
  • How do I use mousemove with a timer

    2
    0 Votes
    2 Posts
    1k Views
    C
    I think you do not need a timer. see "MouseMoveEvent":http://qt-project.org/doc/qt-4.8/qwidget.html#mouseMoveEvent and "setMouseTracking":http://qt-project.org/doc/qt-4.8/qwidget.html#mouseTracking-prop
  • Some colors changes in QT forms without pattern

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Specifying different iconsets for the same widget

    7
    0 Votes
    7 Posts
    4k Views
    R
    I tried qxoz's suggestion of adding the <normaloff> and <selectedon> tags but with this, no icon is generated. Here's how my UI file looks like: I even added a <normalon> tag just in case and that did not help either.... @@ <widget class="LedButton" name="m_Standby_btn" > <property name="icon"> <iconset resource="VSMgui.qrc"> <normalon>:/images/images/whiteCircle_nt.png</normalon> <normaloff>:/images/images/whiteCircle_nt.png</normaloff> <selectedon>:/images/images/blueCircle_nt.png</selectedon> </iconset> </property> <property name="text" > <string>Standby</string> </property> <property name="visible"> <bool>true</bool> </property> </widget> @@
  • Modal QWidget with a non-QWidget parent

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Implement Qt in Windows service

    4
    0 Votes
    4 Posts
    3k Views
    D
    Well why don't you just look yourself? ;) http://qt.gitorious.org/qt-solutions/qt-solutions/blobs/master/qtservice/src/qtservice.h says BSD License, so it's free software. When I remember correctly LGPL is available, too, but BSD is more permissive anyway.
  • [Solved] QML real to string with 1 digit precision??

    4
    2 Votes
    4 Posts
    28k Views
    M
    Please be sure and edit your original post and add [Solved] to the title. Thanks!
  • Phonon::FatalError 0x80040266

    8
    0 Votes
    8 Posts
    7k Views
    B
    I'm having the same problem on a windows 7 64 bit VM machine. I can play some mp3's but not all. I downloaded an mp3 from amazon that did not work. Windows media player plays the mp3 fine. Not using phonon and trying to create the graph myself it did not work either.
  • [Solved] global eventfilter?! is it possible?

    5
    0 Votes
    5 Posts
    5k Views
    G
    thx
  • PostgreSQL connection program crash

    2
    0 Votes
    2 Posts
    2k Views
    S
    Solved, I had bad declaration of object PostgreConn. I fix it: @qDebug() << "PostgreSQL Inicialization starts"; PostgreConn *db; db = new PostgreConn("192.168.1.30", "5432", "postgres", "pass", "test"); db->close();@