Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.4k Posts
  • 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!
  • How to know end of page?

    3
    0 Votes
    3 Posts
    2k Views
    F
    Thanks for the answer. I've already use QTextDocument, but have some problem when printing image file. That's why I try to use QPainter instead.
  • Phonon, how to switch between different audio streams in one media file?

    4
    0 Votes
    4 Posts
    2k Views
    A
    What backend do you use? VLC? I think, it's good to use availableAudioChannelsChanged() signal of MediaController. I have got the result of streaming but using compiled on my own phonon (latest Git) and phonon-vlc (latest Git too) on linux amd64.
  • VideoWidget Video With Transparent Background

    3
    1 Votes
    3 Posts
    3k Views
    M
    hmm after hours and hours of desperating trying, I finally figured something out that seems to be a adequate solution. I converted my visual effect video into a .png sequence. then I used a normal Widget and set the background image to the first .png file of the sequence. then I connected a timer to this function and a counter is moving to the next picture. @ movie_name_int++; movie_name_string="background-image: url(png_sequence/"; movie_name_string_temp.setNum(movie_name_int); movie_name_string.append(movie_name_string_temp); movie_name_string.append(")"); ui.widget_2->setStyleSheet(movie_name_string );@ It works pretty good, but I dont know about the performance, if I am gonna use this often. anyway I am happy I can finally continue Merry Christmas
  • Where do I find the current QtSDK download.

    6
    0 Votes
    6 Posts
    3k Views
    T
    lsatenstein: The Qt 5 packages contain Qt Creator already, so you don't need to download that extra. It is just the Qt 4 that are the bare libraries.
  • QUdpSocket::bind is read-only?

    5
    0 Votes
    5 Posts
    2k Views
    A
    koahnig, I'm doing the same thing if you are talking about that: @while (udpSocket->hasPendingDatagrams()) { QByteArray datagram; datagram.resize(udpSocket->pendingDatagramSize()); udpSocket->readDatagram(datagram.data(), datagram.size()); statusLabel->setText(tr("Received datagram: "%1"") .arg(datagram.data())); }@
  • QT5 qml-components

    4
    0 Votes
    4 Posts
    2k Views
    J
    Great. I pushed a small fix https://codereview.qt-project.org/#change,43595 so that people will get notified when this problem arises.
  • How do i bind Class to QML window in Qt5 or is it a bug.

    2
    0 Votes
    2 Posts
    2k Views
    1
    I was opening Check::createWindow() from another class without making instance of "Check".
  • Crash on exit after opening and closing QSqlDatabase

    14
    0 Votes
    14 Posts
    10k Views
    C
    When you installed VS 2010 I assume it created a entry in your Start Menu for starting a command prompt. The environment this command prompt is started with is configured with the VS compilers in the PATH and a few other things. You should be able to type "nmake /?" at the prompt an get a useful output. In that command prompt you need to add the path to your desired Qt's bin directory, containing qmake. If your Qt library installer put the libraries into C:\Qt\4.8.4 then you should run "C:\Qt\4.8.4\bin\qtvars.bat" (or manually add that directory to your PATH. You should then be able to type "qmake -v" and get something meaningful.