Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • 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.
  • [solved] about using QSharedPointer

    2
    0 Votes
    2 Posts
    1k Views
    S
    fixed , I have a mistake , sorry. @ node.data()->getName(); @
  • Qt5: QQuickView lib missing?

    3
    0 Votes
    3 Posts
    4k Views
    W
    thks. I didn't do that in 4.8.
  • QT 5 - multimedia osx does multimedia library use quicktime as a backend

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Non connected signal causes crash

    9
    0 Votes
    9 Posts
    3k Views
    K
    The exact same thing with MinGW 4.7.2 :-( The possible requirement to recompile everything once again with another compiler damps a bit my enthusiasm to continue. In my opinion the problem occurs through the combination of different factors. This makes it hard to blame on any of the pieces involved. Ultimately the emit of Qt is the one drop too much for the barrel. I have decided to the signal's argument list from "const object & " to a variant of shared pointer. This certainly solves the problem for me.
  • Youtube API in Qt

    6
    0 Votes
    6 Posts
    4k Views
    Z
    OK I see what you are getting at now. What I would suggest is something along these lines: Construct a class that issues the API calls to youtube When the data is returned to you process the XML (I assume it is xml from what you said) using QXmlStreamReader. Create a class that inherits from QAbstractListModel. Populate this list with items from contained in your xml (i.e. search results). If you are using QML (which sounds like it will be a good fit in this case), create a QML document that contains a ListView element along with a custom delegate element (this gets created for each item in your list model). From C++ expose your list model of results to QML using QDeclarativeContext::setContextProperty() In QML set the "model" property of your list to the id of your exported model. That is the basic setup. Of course you can go further by having a TextInput QML element to control what to search for on youtube etc. Take a look at some of the QML examples with custom C++ list models that ships with Qt. Please feel free to come back with specific questions on the above steps.
  • QScrollBar fixed maximum size with both orientations

    2
    0 Votes
    2 Posts
    924 Views
    B
    (If I understood correctly) Try using a custom signal that is emitted when he switches between vertical / horizontal and a slot that sets maximumHeight for horizontal and maximumWidth for vertical...
  • 0 Votes
    5 Posts
    3k Views
    H
    Try use absolute path in load method.
  • Windows compiling: Problems with output destination from Mingw

    2
    0 Votes
    2 Posts
    943 Views
    podsvirovP
    "Here":http://qt-project.org/doc/qt-4.8/qmake-variable-reference.html you can find a description of all the qmake (*.pro) variables. In this case, you can help the variable "DESTDIR":http://qt-project.org/doc/qt-4.8/qmake-variable-reference.html#destdir. For example: @ DESTDIR = bin @