Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • 0 Votes
    4 Posts
    3k Views
    M
    In future if someone else is in need: "Your text to link here...":http://lists.qt.nokia.com/pipermail/qt-interest/2011-July/034969.html
  • A error when I use QTab setcurrentIndex()

    3
    0 Votes
    3 Posts
    4k Views
    D
    Thanks a lot. I tried the second one, it perfectly works. Cheers
  • [Moved] control master volume from Qt creator application

    3
    0 Votes
    3 Posts
    3k Views
    R
    yes i added QT+=phonon. Can u clarify what is execution directory. phonon4.dll is there in C:/Qt/2010.05/bin directory. Iam saving my projects in C:/Qt/MyProjects directory.
  • Backup from my db

    4
    0 Votes
    4 Posts
    3k Views
    G
    Or have a look at this "recent thread":http://developer.qt.nokia.com/forums/viewthread/9090
  • [SOLVED] When Qt automatically parents my objects?

    13
    0 Votes
    13 Posts
    16k Views
    G
    [quote author="Lukas Geyer" date="1314266752"]No, but see "here":http://developer.qt.nokia.com/forums/viewthread/9050/.[/quote] That links to this thread - a mistake?
  • Crash using QPainter from secondary thread

    17
    0 Votes
    17 Posts
    13k Views
    M
    I have posted the root cause, a small project to reproduce it and a temporary workaround in the Bugtracker for this bug: QTBUG-19886 It is caused by a stack mis-alignment of the newly created thread. It affects the drawing engine which expects 16-byte alignment for the used SSE2 instructions. It appears to only occur on windows XP. And happens when a QPainter::drawImage is done on a different thread. The stack on the new thread (QThread subclass and started with start()) is NOT 16-bit aligned, and causes a Segmentation Fault on the MMX instruction PANDN in qdrawhelper_sse2.cpp. The only (dirty) workaround I can think of is to manually push extra bytes on the stack in case it is not aligned to realign the SP to a 16-byte boundary. And this seems to work quite well, no more crashes!
  • QThreadStorage crash in Windows - 4.7.0

    7
    0 Votes
    7 Posts
    4k Views
    G
    [quote author="kartlee" date="1314379149"] Should we not take it for granted that it works with non Qt threads? [/quote] As the warning is still in the source code, I would say no, it only works with QThread, but not with with threads started using platform-specific APIs or other libraries like boost.
  • Delete stretches from layout

    3
    0 Votes
    3 Posts
    6k Views
    T
    Thank you for your answer. It's very helpful for me.
  • QMdiArea and new instance of program

    5
    0 Votes
    5 Posts
    3k Views
    G
    AFAIK it was not merged. But it's pretty easy to use and works like a charm... :-)
  • Siblings on top of QGLWidget

    7
    0 Votes
    7 Posts
    4k Views
    A
    They keyword in the warning is, I think, sibling widgets. That is: widgets that are at the same level of the GLWidget, instead of being child widgets of the GLWidget.
  • [SOLVED]How to add an icon(image) to QImage and update the image

    4
    0 Votes
    4 Posts
    4k Views
    A
    -Please mark the topic as [Solved] by editing the title of the topic from your first post.- Edit: You already did. Thanks :-)
  • Dialog and xine

    3
    0 Votes
    3 Posts
    2k Views
    A
    I think you are battling the window manager here, not Qt. For me, it makes sense that no dialog boxes of other applications are allowed over an application that runs full-screen, but your or the window managers opinion may differ on that. That it works if you set your own application to run full screen as well makes perfect sense then too. Thanks for reporting back though.
  • [SOLVED] remove the space in between the buttons

    18
    0 Votes
    18 Posts
    15k Views
    R
    You're welcome :P
  • Baffling problems with setUserStyleSheetUrl

    Moved
    4
    0 Votes
    4 Posts
    2k Views
    A
    Well, loading the file and encoding it into base 64 then passing it as a data: object to setUserStyleSheetUrl works around the problem with actually locating the file, but the table rendering is still broken. I've tested this with third party CSS as well as my own and confirmed that the table is rendered correctly if I embed the CSS in the HTML with a style declaration. Can anyone explain why the rendering would be different using setUserStyleSheetUrl than when embedding the CSS with a style directive in the HTML? Thanks.
  • [solved] OpenGL Examples in Qt on Solaris not running.

    12
    0 Votes
    12 Posts
    7k Views
    V
    I have alreday shared the solution Eddy.., :-)
  • [solved] How to catch mouse click event on titlebar area of QMainWindow?

    11
    0 Votes
    11 Posts
    13k Views
    Y
    and it should be like this @bool gwMainWindow::winEvent ( MSG * msg, long * result ) { if (msg->message == WM_NCLBUTTONDOWN) { int nHittest = (INT) msg->wParam; if (nHittest == HTCAPTION) { //here catch the lbuttondown event only on titlebar } } }@
  • Create an slidebar

    5
    0 Votes
    5 Posts
    3k Views
    F
    Tell us even more. Make a drawing of what you want to achieve for example. We want to understand your use case, so we can help you. One line isn't enough.
  • Help implementing a qlist model

    4
    0 Votes
    4 Posts
    5k Views
    F
    Thanks for the answers, now it is more clear. Since my model is really simple and linear, I converted the QListView in a QListWidget and operate on it adding and removing items. At least until I know better the view/model architecture behind Qt.
  • Qt Crash with phonon

    4
    0 Votes
    4 Posts
    3k Views
    S
    I am getting the following errors on executing Qmediaplayer demo. @ (<unknown>:1422): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libgstdecodebin.so': /usr/local/lib/libgstpbutils-0.10.so.0: undefined symbol: gst_element_link_pads_full (<unknown>:1422): GLib-GObject-WARNING **: invalid (NULL) pointer instance (<unknown>:1422): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed (<unknown>:1422): GLib-GObject-WARNING **: invalid (NULL) pointer instance (<unknown>:1422): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed (<unknown>:1422): GLib-GObject-WARNING **: invalid (NULL) pointer instance (<unknown>:1422): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed (<unknown>:1422): GStreamer-CRITICAL **: gst_bin_add: assertion `GST_IS_ELEMENT (element)' failed. @ I have reinstalled Gstreamer , Gstreamer plugin base and Gstreamer plugins good. Can anybody help on how to resolve the problem
  • [solved] [Split] Problem with QXmlStreamReader

    4
    0 Votes
    4 Posts
    3k Views
    M
    Thanks for reply I solved the problem