Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • 0 Votes
    7 Posts
    7k Views
    adaitabeheraA
    Thanks MuldeR. I got it now. It is quite clear now.
  • QListView with QSortFilterProxyModel

    1
    0 Votes
    1 Posts
    790 Views
    No one has replied
  • Need Help Installing MySQL Driver on Windows XP 32-Bit for QT 5

    2
    0 Votes
    2 Posts
    2k Views
    C
    Hi Albert, I had a similar problem with the Linux QT5 and the psql driver. If you get the "Cannot find mysql.pro" you probably won't have the sources installed? You should check that first and once you have localized your mysql.pro just try compiling the plugin with the Creator. Good luck Erich
  • QT5 - Trying to get actual size of a video

    1
    0 Votes
    1 Posts
    766 Views
    No one has replied
  • Install QT 5.0 on windows 7 64bit

    11
    0 Votes
    11 Posts
    31k Views
    F
    Here is the build of Qt5.0+msvc2010 and windows7 x64. 11:33:55: Running steps for project untitled... 11:33:55: Starting: "C:\qt\Qt5.0.0\5.0.0\msvc2010\bin\qmake.exe" C:\qt\projects\untitled\untitled.pro -r -spec win32-msvc2010 11:33:56: The process "C:\qt\Qt5.0.0\5.0.0\msvc2010\bin\qmake.exe" exited normally. 11:33:56: Starting: "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe" "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe" -f Makefile.Release C:\Qt\Qt5.0.0\5.0.0\msvc2010\bin\uic.exe ..\untitled\mainwindow.ui -o ui_mainwindow.h C:\Qt\Qt5.0.0\5.0.0\msvc2010\bin\moc.exe -DUNICODE -DWIN32 -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"......\Qt\Qt5.0.0\5.0.0\msvc2010\include" -I"......\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtWidgets" -I"......\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtNetwork" -I"......\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtGui" -I"......\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtCore" -I"release" -I"." -I"." -I"......\Qt\Qt5.0.0\5.0.0\msvc2010\mkspecs\win32-msvc2010" -D_MSC_VER=1600 -DWIN32 ..\untitled\mainwindow.h -o release\moc_mainwindow.cpp cl -c -nologo -Zm200 -Zc:wchar_t -O2 -MD -GR -W3 -w34100 -w34189 -EHsc -DUNICODE -DWIN32 -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"......\Qt\Qt5.0.0\5.0.0\msvc2010\include" -I"......\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtWidgets" -I"......\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtNetwork" -I"......\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtGui" -I"......\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtCore" -I"release" -I"." -I"." -I"......\Qt\Qt5.0.0\5.0.0\msvc2010\mkspecs\win32-msvc2010" -Forelease\ @C:\Users\Portela\AppData\Local\Temp\nm86AF.tmp main.cpp mainwindow.cpp Generating Code... cl -c -nologo -Zm200 -Zc:wchar_t -O2 -MD -GR -W3 -w34100 -w34189 -EHsc -DUNICODE -DWIN32 -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I"......\Qt\Qt5.0.0\5.0.0\msvc2010\include" -I"......\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtWidgets" -I"......\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtNetwork" -I"......\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtGui" -I"......\Qt\Qt5.0.0\5.0.0\msvc2010\include\QtCore" -I"release" -I"." -I"." -I"......\Qt\Qt5.0.0\5.0.0\msvc2010\mkspecs\win32-msvc2010" -Forelease\ @C:\Users\Portela\AppData\Local\Temp\nm8B52.tmp moc_mainwindow.cpp link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /MANIFEST /MANIFESTFILE:release\untitled.exe.embed.manifest /OUT:release\untitled.exe @C:\Users\Portela\AppData\Local\Temp\nm8CF8.tmp mt.exe /nologo /manifest release\untitled.exe.embed.manifest /outputresource:release\untitled.exe;1 11:33:59: The process "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe" exited normally.
  • How to play from buffer in Phonon media player?

    2
    0 Votes
    2 Posts
    2k Views
    I
    You can use QAudioOuput to play audio data. It has two modes of usage. In one case copy data to some buffer and then start QAudioOutput with this buffer. You can use this in case you have all data before start. In other case starting QAudioOutput returns pointer for QIODevice which you can use to write your data while it arriving. P.S. In later case you can check available space in output buffer and write accordingly.
  • What is required for 3D in QtQuick 2?

    4
    0 Votes
    4 Posts
    2k Views
    JKSHJ
    I'm not sure, sorry. But apparently, Qt 3D is incomplete and not fully usable: http://lists.qt-project.org/pipermail/interest/2012-December/004930.html (You can probably sign up at the mailing list and ask there -- someone might be able to tell you how to install it)
  • [SOLVED] Window style

    6
    0 Votes
    6 Posts
    3k Views
    J
    I'm glad you got it working :) . Please mark thread as solved. Regards, Jake
  • I do not understand this syntax, which does not work

    3
    0 Votes
    3 Posts
    2k Views
    JKSHJ
    Hello, Have a look at C++ syntax for function pointers (especially pointers-to-member-functions). For the new version of QObject::connect() with 4 arguments, the arguments are: Pointer to the object that emits the signal Pointer to the member-function that acts as the signal Pointer to the object that receives the signal Pointer to the member-function that acts as the slot Your example uses a version with 3 arguments, which are: Pointer to the object that emits the signal Pointer to the member-function that acts as the signal Pointer to the non-member-function to be invoked [quote author="nostrora" date="1356603974"]in the doc here is the syntax @connect (sender, & Sender :: valueChanged,               receiver, Receiver & updateValue ::);@ [/quote]Be careful -- You have an extra "::" at the end [quote author="nostrora" date="1356603974"] @QObject :: connect (m_actionQuitter, and QAction :: triggered, creerMenu ());@ [/quote]Don't write "and". In C++, "&" has special meanings. If creerMenu() doesn't belong to a class, there are two correct ways to write it: @ QObject::connect(m_actionQuitter, &QAction::triggered, creerMenu); QObject::connect(m_actionQuitter, &QAction::triggered, &creerMenu); @ But, if creerMenu() belongs to a class, use Jake007's version.
  • Where can I get QT5 SDK for Embeded Linux

    4
    0 Votes
    4 Posts
    2k Views
    T
    You can either get Qt from your embedded linux distribution or build it yourself. Since embedded linux distros do vary widely there is no way to provide a one-size-fits-all build.
  • Compile Qt5: sqlfront.h not found

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Will the VS10 version of Qt work with VS11 compiler?

    3
    0 Votes
    3 Posts
    2k Views
    L
    There is no proper C++11 support in MSVC2012 either. You might want to take a look at the "VC++ CTP":http://www.microsoft.com/en-us/download/details.aspx?id=35515.
  • [SOLVED] How to cache .gif files using QLabel & QMovie ?

    2
    0 Votes
    2 Posts
    2k Views
    M
    LOOOOOOOOOOOOOOOOOOL Okay guys, you will never guess what caused the big performance issue. somewhere I placed accidentally the code @repaint();@ and that caused so big performance issues O.O so no need for cache anything. holy pussycat^^
  • QFont crash with Qt 5

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • [Solved] Are QWindowsStyles gone in Qt 5?

    4
    0 Votes
    4 Posts
    14k Views
    W
    Thanks. I was able to rework things to use QProxyStyle with either Qt4 or Qt5.
  • QMap implementation

    3
    0 Votes
    3 Posts
    3k Views
    M
    Without having looked at the implementation details in Qt, a red-black tree is simply a type of binary search tree. A binary search tree provides fast key lookup, as required for an associative array (map). That's because, in each search step, the number of items left to be searched is divided by two. However this only works in a "balanced" binary search tree, where each item has the same number of successors on its "left" and "right" side. Unfortunately it can happen that a binary search tree degenerates into something that look pretty much like a linked list! Then key lookup will become slow, because we (essentially) need to walk through all items, one after another. Now one could maintain a "perfectly balanced" binary search tree, by re-balancing after each "insert" or "delete" operation. This gives the best possible search performance, but "insert" and "delete" operations become too expensive! Finally the red-black tree uses a few clever rules that assure that our binary search tree won't degenerate too much, maintaining an "almost balanced" binary search tree. But as the rules are not as strict as with a "perfectly balanced" binary search tree, the red-black tree provides much faster "insert" and "delete" operations, while also guaranteeing fast key lookup (not as fast as a "perfectly balanced" binary search tree, but almost as fast). For details you may look at the Wikipedia article about the red-black tree... (I never implemented a "skip list" before, but it looks pretty much like a linked-list with a few "shortcut" links)
  • Graphicsitems movement problem

    4
    0 Votes
    4 Posts
    2k Views
    J
    Please mark post as solved ( perpend [SOLVED] to title).
  • QSslSocket and QThread

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    2 Posts
    973 Views
    J
    Good old rebuild project button and eternity of waiting solved the problem.