Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • QNetworkAccessManager returning empty results

    4
    0 Votes
    4 Posts
    3k Views
    SGaistS
    Hi, @m_NetworkManager = new QNetworkAccessManager(this);@ Should be in RestClientCore constructor. You are creating a new QNAM each time you call ConnectToServer and never delete the old one.
  • How to paint a constellation mapping using Qt.

    6
    0 Votes
    6 Posts
    2k Views
    SGaistS
    There are several possibilities, keep a list of your points, update it and redraw them all. Use a QPixmap, draw each new point on it then just draw this pixmap in your widget. Or look at e.g. Qwt which provides facilities for that kind of drawing.
  • Problem with decoding AAC internet stream on Linux using QtMultimedia

    7
    0 Votes
    7 Posts
    3k Views
    C
    Here is output from gst-launch-0.10: @ Failed to create secure directory (/run/user/1000/pulse): No access ERROR: from element /GstPlayBin:playbin0/GstDecodeBin:decodebin0/ffdec_aac:ffdec_aac0: Could not decode stream. Additional diagnostic information: gstffmpegdec.c(2213): gst_ffmpegdec_audio_frame (): /GstPlayBin:playbin0/GstDecodeBin:decodebin0/ffdec_aac:ffdec_aac0: Decoding of AAC stream by FFMPEG failed. @ ADD: Installed gstreamer0.10-plugins-bad solved problem. Thank you for help.
  • Unable to register a callback function in a dll

    4
    0 Votes
    4 Posts
    2k Views
    A
    You may use static member function and pass a pointer of the object to the function. @ class Foo { ... void handleEvent() {} static void cbHandleEvent(void* ptr) { Foo* obj = static_cast<Foo*>(ptr); obj->handleEvent(); } ... }; typedef void (TSetCallbackFunc)(void (callback(void)); @ If replace void with Foo* then you don't need static_cast. or you can pass a member function and a pointer to TSetCallbackFunc but it depends on details of TSetCallbackFunc design. @ class Bar { ... void handleEvent() {} ... }; typedef void (TSetCallbackFunc)(Foo ptr, void (Foo:: *callback()); @
  • Dbus adaptor using qt5

    3
    0 Votes
    3 Posts
    1k Views
    S
    QDbusAdaptor is maybe an obsolete class. In that case, it should be declared as such.
  • Dbus interface, replicate script from bash

    3
    0 Votes
    3 Posts
    1k Views
    P
    Oh, sorry. Qt 4.8, and this program is supposed to run on raspibian(debian). Linux raspberrypi 3.12.22 D-Bus Message Bus Daemon 1.6.8
  • How to connect slignals and slot function to class.

    6
    0 Votes
    6 Posts
    2k Views
    H
    http://qt-project.org/doc/qt-4.8/multimedia-videowidget-videoplayer-cpp.html u can see this code my code is lil bit same
  • [SOLVED] QXmlDomDocument parsing fails to read processing instruction

    7
    0 Votes
    7 Posts
    2k Views
    JohanSoloJ
    OK I'm glad you solved your problem. Please edit the title and prepend [SOLVED] so that reader know this issue is closed.
  • 0 Votes
    9 Posts
    3k Views
    I
    SGaist. Thank you so much. Inserting the path as you suggested and inserting this: @CONFIG += c++11@ into the project file worked. I really appreciate your support! Thank you!
  • Multiplatform way of writing Qt application

    8
    0 Votes
    8 Posts
    2k Views
    C
    Thank you so much. Is there any websites I can follow to get the steps for the process?
  • Create custom widgets in QT like C#

    4
    0 Votes
    4 Posts
    1k Views
    R
    thanks Dheerendra, I want to have access to the property through the design Mode. Can you give me a sample or video that I know better , please.
  • Save settings in UI

    3
    0 Votes
    3 Posts
    1k Views
    G
    Thanks sierdzio I will give QSettings a go. Seems simple enough.
  • QPrinter and multithreading

    7
    0 Votes
    7 Posts
    2k Views
    Y
    I tried to run ChrisW67's code with success on Qt 5.2.1. Soon I will run it on 4.8.6.
  • NetBeans and Qt

    2
    0 Votes
    2 Posts
    3k Views
    M
    Dear ArbolOne, No, there are no such problems in Netbeans. It can use the compiler provided by Qt (32-bit) just fine. I am assuming that you are building a Win32 GUI application. Do you see a -Wl,--subsystem,windows in the build output windows in the linking step? Netbeans may have assumed a Console application by default ?? Have not used Netbeans 8 for Qt yet. But I did notice a problem using Netbeans 7 with Qt 5.x. Qt 5.x needs a QT += widgets in the .pro file. Netbeans 7 build automatically re-generates pro file and there is NO MEANS of specifying this option. So GUI programs did not build correctly! No such issues using Netbeans with QT 4.x
  • QStrings (and other text) lose (ignore) embedded quote chars

    3
    0 Votes
    3 Posts
    899 Views
    C
    No I am not, but I did find the problem. In VisualGDB when I do a quickwatch on the object (a string in this case), it does not show the single quotes, but if I check the length of the string, it does account for two single quotes. Rather strange... Thanks so much for the quick response.
  • Show control and handle large rows for QTableView

    3
    0 Votes
    3 Posts
    921 Views
    K
    Thank Jeroentje, I just update photo
  • Crash when disabling action of first menubar item

    3
    0 Votes
    3 Posts
    881 Views
    U
    No, it is handcoded and it is a large app, so I cannot share the exact code. But I will try to compile a simple example.
  • QMutex - Valgrind - Invalid read of size

    2
    0 Votes
    2 Posts
    2k Views
    A
    Well usually valgrind throws those type of errors when the memory for an object has been cleaned off the stack. It looks like you are using stack variables since you said QMutex.lock() and .unlock() rather than ->lock(), ->unlock(). My guess is your QMutex is out of scope. If that's the case then you are just getting plain lucky on the memory and mutex working at all. But that is what valgrind is for is to catch problems like that. :)
  • Adding External library

    7
    0 Votes
    7 Posts
    2k Views
    A
    No it doesn't download for you, at least I don't think it does. I always build Qt myself. Anyway, you will probably need to get a copy of it. You do not need to buy it though. You will need a license but you just get that automatically on install with a valid email address. You can download Visual Studio Express from "here":http://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx . Express is the free version. Be careful when you download and read everything. Like most things they try to trick you into the professional version trial so you then think you have to buy it later. Just make sure you stick with "express" not "pro" and the free option during the download process and you should be good to go. Sorry you have to work with MSVC. ;)
  • QDebug causes crash

    4
    0 Votes
    4 Posts
    2k Views
    A
    What compiler/environment are you using?