Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • [SOLVED] Qt Creator 2.4.1 and gdb compile errors

    4
    0 Votes
    4 Posts
    3k Views
    W
    Discovered that my company has switched to ninja which does not send its out put to stderr. The guy who sets up our build system had added a wrapper to pipe the output back to stderr but forgot to re-install the wrapper after my system had to be rebuilt. (He also forgot to mention the wrapper at all.) Thanks to all who tried to help.
  • About the QImage::bits() method

    5
    0 Votes
    5 Posts
    14k Views
    M
    bq. ... the output is telling me that the order of the colors is not RGB but BGR and it seems that the fourth byte is the alpha value. You can also call "QImage::format()":/doc/qt-4.8/qimage.html#format to query the QImage's format.
  • [SOLVED] Help in Creating Indexed8 image from a buffer

    8
    0 Votes
    8 Posts
    3k Views
    M
    What was the solution? (In case others with the same issue read this thread in the future.)
  • QTreeWidget: Set color text: specified column in specified row [Solved]

    6
    0 Votes
    6 Posts
    7k Views
    Z
    Hello, I found a solution. QTreeWidgetItem->setColor, did the job. Thanks, Zvika
  • QTimer insidea DLL called by DELPHI does not work.

    2
    0 Votes
    2 Posts
    2k Views
    D
    I have no idea what you have done. But if you want QTimer works, you must start Qt EventLoop first.
  • Dynamic library usage

    7
    0 Votes
    7 Posts
    4k Views
    P
    Hi Gerolf, I finally managed to get the program running: I made the mistake of only testing the library with Dependency Walker, without testing the executable. For some reason, additional (missing) libraries appeared in that second search that didn't show up in the first one. bq. if you run in srashes, you should use the debugger. My knowledge of the debugger is limited to stepping through the code using a watch list, which doesn't seem to help me if the crash happens before the first line of main(). What do you recommend? bq. With minGW, a static library is an archive (.a) and a dynamic lib is an .so file Perhaps I misunderstand, but I'm finding that MinGW creates DLLs. Aren't .so files restricted to *NIX environments?
  • QGLBuffer

    5
    0 Votes
    5 Posts
    7k Views
    N
    never mind ... i used setAttributeArray instead of using setAttributeBuffer
  • Stopping data transfer with QTcpSocket

    7
    0 Votes
    7 Posts
    6k Views
    S
    ok i solved this problem with a win api funciton setsockopt() :/ i inherited the QTcpSocket and set an option to the socket @ #ifdef WIN32 #include <Winsock2.h> #endif #include "qmytcpsocket.h" void QMyTcpSocket::abort() { #ifdef WIN32 SOCKET s = this->socketDescriptor(); BOOL bOptVal = FALSE; int bOptLen = sizeof (BOOL); setsockopt(s, SOL_SOCKET, SO_DONTLINGER, (char *) &bOptVal, bOptLen); #endif TcpSocket::abort(); } @ is it possible to set the SO_DONTLINGER option with qt?
  • Porting class constructor to a script

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • (Solved) Focus in table widget

    10
    0 Votes
    10 Posts
    4k Views
    G
    was util for me
  • QHelpEngine images

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Qt emit signals

    4
    0 Votes
    4 Posts
    46k Views
    T
    Technically they actually are defined: Moc adds code to all classes containing the Q_OBJECT macro, incl. some that implements the signals.
  • How to change QWebView Audio level

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • UI and other classes

    2
    0 Votes
    2 Posts
    1k Views
    S
    Hi, It will be really helpful if you can provide some lines of your code, as it we are not able to figure out the main problem related to your code. Also, check in the paintEvent() function whether the QString displayed is still set to the previous text even after main.invalidString() is called. After changing the text value of displayed u can call repaint() function if required.
  • Widgets For Windows XP

    2
    0 Votes
    2 Posts
    6k Views
    S
    Hi, In order to create widgets and forms like that you can try the following: "Qt Style Sheets":http://qt-project.org/doc/qt-4.8/stylesheet.html which is very powerful and allows you to customize the appearance of the widgets. You can also change the StyleSheets at runtime just like windows themes we can change the look and feel. "Create Custom Style":http://qt-project.org/doc/qt-4.8/qstyle.html#creating-a-custom-style you can create a custom look and feel for your application by creating a custom style. "Qt's Paint System":http://doc.qt.digia.com/4.7/paintsystem.html allows you to paint anything that you want. For Opacity you can refer to "QGraphicsOpacityEffect":http://qt-project.org/doc/qt-4.8/qgraphicsopacityeffect.html. You can also have a look on the "Qt Widgets":http://qt-apps.org/index.php?xcontentmode=4298 to have an idea about how these can be developed. And last you can have a look on "Creating a custom window example ":http://qt.developpez.com/tutoriels/braindeadbzh/customwindow/, you need to translate or open this link in google chrome. Regards Soumitra.
  • Compile the Qt project in windows

    8
    0 Votes
    8 Posts
    8k Views
    A
    I mean same thing only.
  • How to change sysem volume using Qt

    3
    0 Votes
    3 Posts
    3k Views
    A
    I tried by the casses suggested by you, but no help. Since I dont deal with any media file playback so that I feel QMediaObject is not suitbale for this case. Howevwe I tried with AudioOutput, and Volume Slider class but no help in controlling the system volume. Below mention is code that I wrote , please figure out where is the problem. @ Phonon::MediaObject *mediaObject = new Phonon::MediaObject(this); audio = new Phonon::AudioOutput(Phonon::MusicCategory, this); Phonon::createPath(mediaObject, audio); volumeSlider = new Phonon::VolumeSlider; volumeSlider->setAudioOutput(audio); volumeSlider->show();@
  • [SOLVED] Qt GUI for my multi-threaded console app on Linux?

    5
    0 Votes
    5 Posts
    6k Views
    V
    [quote author="MuldeR" date="1335138403"] Qt provides a QThread class to manage threads. As with all GUI frameworks that I am aware of, you can't access GUI widgets directly from any thread, except for the "main" thread (i.e. the thread that processes the event loop). [/quote] -- Ohhh, I see. I got it, I might have more detailed questions later. Thanks for your post!
  • How to get bugreport/suggestion evaluated.

    3
    0 Votes
    3 Posts
    2k Views
    M
    Thanks for the quick reply! [quote author="1+1=2" date="1335138267"]This suggestion can not be accepted by Qt4.8, unless there is plan for Qt4.9. Otherwise, application linked to Qt4.8.3 will refuse to work with Qt4.8.0.[/quote] That's a pity. But I see that it would break binary compatibility. I really hope there will be a Qt 4.9, as Qt 5 looks like it will still need a lot of effort and time until it can replace Qt 4 for native C++ development. Until then, I'll need to build Qt 4.8.x with custom patches... [quote author="1+1=2" date="1335138267"]However, If you think this important for you, you can push a commit through gerrit http://wiki.qt-project.org/Setting_up_Gerrit for Qt5.0 before Qt5.0 beta released.[/quote] Will do that. Thanks.
  • How to use <QGeometryData> namespace

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    G
    Closed due to "double post":/forums/viewthread/16550.