Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • QThread and timers

    25
    0 Votes
    25 Posts
    14k Views
    A
    [quote author="goli" date="1356332295"]I have embedded device, and I don't get this warrning on the device. [/quote] I target desktop on Windows. Could be a bug?
  • Catch emitted signal from multiple class

    2
    0 Votes
    2 Posts
    2k Views
    M
    If objects that "live" in different threads are connected, a queued connection will be created, by default. However an object will only be able to process queued signals, if the thread to which that object belongs, is running an event loop! That's because in contrast to a direct connection (where the slot is called directly from the emit statement and thus from the context of the thread which called the emit), with a queued signal, the event loop of the thread where the receiver object "lives" will pick up the signal and then call the slot (i.e. the slot is now called from the context of the thread where the receiver object "lives", not from the sender's thread). So if you re-implemented QThead::run(), call QThead::exec() there in order to start an event loop in that thread...
  • Error: Symbolic links not supported: disabling -L. - BlackBerry

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • QMediaPlayer random start delay

    2
    0 Votes
    2 Posts
    3k Views
    P
    I found out that the problem was not the QMediaPlayer, it was the Timer that triggers events. The solution is to set the timer to be more presice: @ noteTimer->setTimerType(Qt::PreciseTimer); @ Problem solved :)
  • [SOLVED]How to enable tool tip on no focus

    4
    0 Votes
    4 Posts
    2k Views
    A
    Thanks! a lot. It did the job.
  • QODBC Informix Segmentation fault

    2
    0 Votes
    2 Posts
    2k Views
    C
    Try to set environment variable: DBDATE=DMY4. Note that symbol "." is important. Under Windows you can do it using IBM Informix Setnet32.
  • Mysql in qt5

    8
    0 Votes
    8 Posts
    8k Views
    A
    Thanks clocydd, I have solved it with compiling QBase code cloned from Github, in Archlinux
  • Qt5 QDateEdit Stylesheet button

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • QTimer

    4
    0 Votes
    4 Posts
    2k Views
    A
    I solved the problem myself. Thanks for the replies!
  • Internet connection with QUdpSocket

    Locked
    11
    0 Votes
    11 Posts
    8k Views
    M
    Now it's absolutely clear! Thanks for your patience!
  • Problem with new connect syntax

    3
    0 Votes
    3 Posts
    2k Views
    D
    Beware that such a lambda construct isn't a real connection between QObjects, right? So things like sender() or connectNotify() won't work. (And even a disconnect?)
  • Problem with image in PDF using QTextDocument.

    2
    0 Votes
    2 Posts
    3k Views
    M
    Try using Portable Network Graphics (.png) instead of JPEGs. I had several problems with JPEGs, too, and using PNGs fixed the problem. To convert your image, you could use any image manipulation program (e.g. GIMP), load the image and export it as Portable Network Graphic.
  • Doc not at date ?

    2
    0 Votes
    2 Posts
    898 Views
    C
    I think you are asking why the docs are using the original style for connect() and not the new style. The new style is optional. This does not make the documentation incorrect or out of date. If you want to use the optional new-style connect() then go right ahead.
  • Run and debug by bumblebee

    5
    0 Votes
    5 Posts
    4k Views
    S
    Just adding to this old post as I had the same issue. Call qtcreator with "optirun qtreator" and debugging will work and you can get the correct context (ie use the nvidia hardware) - so do not call optirun again in your run time config - just once when spawning qtcreator. This worked for me with no additional changes to the qt config.
  • What happened with default fonts in Qt5?

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Show progress of html loading for QTextEdit

    3
    0 Votes
    3 Posts
    2k Views
    A
    Yes I have tried. Same behavior, except that loading is much slower. Thanks for replying
  • QString not evaluated during QtCreator debug, where can I find gdbinit

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Parse logical expression string in qt

    2
    0 Votes
    2 Posts
    4k Views
    D
    ECMAScript is supported by Qt (JavaScript). Have a look at http://qt-project.org/doc/qt-4.8/scripting.html However this of course might be much too powerful than necessary (or even desirable) in your situation. A parser for such simple expressions can be written from scratch quite quickly. Recurse bracket-wise and decompose into operand-operator-operand blocks, which finally create a tree structure. Then just execute the logic of the tree, the value of the root is the result.
  • Building Qt5 with all the modules on Windows (not only QtBase)

    3
    0 Votes
    3 Posts
    4k Views
    V
    It's not cloned, it's installed with Qt 5 installer for Windows. I was never able to build Qt 5 from repository successfully.
  • [RESOLVED]How to control the step time while recive data

    3
    0 Votes
    3 Posts
    1k Views
    L
    I got the solution through QTimer. Thank you Chris!