Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.4k Posts
  • [SOLVED]Update GUI from a no-QThread

    14
    0 Votes
    14 Posts
    12k Views
    M
    Thanks all for your replies...!!!
  • How to catch MouseEvent from QGraphicsScene, LinkError

    4
    0 Votes
    4 Posts
    2k Views
    M
    Even i got the same error.. Please help me..!!!
  • QSharedMemory::handle doesnt exist error [SOLVED]

    6
    0 Votes
    6 Posts
    4k Views
    M
    Thanks for your Post and Replies guyz... Even i too did the same Mistake trying without creating the memory. After seeing your replies i got to know it.. Thanks a lot... Thanks & Regards...
  • Generate a DLL with __stdcall calling convention

    6
    0 Votes
    6 Posts
    16k Views
    V
    I'm facing a similar problem changing calling convention to cdecl gives "Interlocked" errors in files qatomic_windows.h and intrin.h. I'm tried on Visual Studio using QT VS Plugin and QT Creator. Steps to recreate: Visual Studio Create a QT console application. VS properties -> Configuration Properties -> C/C++ -> Advanced -> Calling Convention. Change to __stdcall (/Gz) Qt Creator Create a console or any other application In the .pro file add the following lines QMAKE_CFLAGS += /Gz QMAKE_CXXFLAGS += /Gz Build the project Platform Details: Windows 7 64 bit Visual Studio 2010 QT Version 4.8.2
  • Retrieve weather forecast

    19
    0 Votes
    19 Posts
    7k Views
    A
    the problem is, your choosen service returns RSS feed with forecast as simple html text in [CDATA]... So, you need to parse it yourself... For example with "QRegExp":http://qt-project.org/doc/qt-4.8/qregexp.html parse days first(there is only 7 days), after that parse temperature, it may always have format like: +/- <min 1 digit - max 2digits>°<ignore symbols> - <ignore symbols> +/- <min 1 digit - max 2 digit>°
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • New-style Windows cursors when dragging to app from outside

    1
    0 Votes
    1 Posts
    932 Views
    No one has replied
  • Filedialog customization

    4
    0 Votes
    4 Posts
    2k Views
    R
    Sorry for trying to help you solve your problem. I am not affiliated in anyway with Squish and I just find it useful for that type of work. Now if you are just too full of yourself to accept a honest hint into a possible solution, you are probably not in the right place.
  • Qt - Disable internet connection

    2
    0 Votes
    2 Posts
    1k Views
    R
    Qt does not offer such functionality. What you want is kind of a firewall. On Linux, you should check out "iptables":http://www.netfilter.org/ that allows you to do just that.
  • How can i deploy a application with QCA library

    7
    0 Votes
    7 Posts
    5k Views
    Z
    thanks,i have resolved it. with the line below: #CONFIG += crypto.prf CONFIG += crypto the resolved ways: eg: C:\myapp is my root folder; so executable C:\myapp\myapp.exe – executable qt's dll c:\myapp\QtCore4.dll ---qt's dll .... c:\myapp\QtGui4.dll ---qt's dll QCA'S dll c:\myapp\qca2.dll,qca-ossl2.dll,libeay32.dll,ssleay32.dll QT's plugins (here you can copy QT's plugins to your root folder) c:\myapp\plugins\codecs .... c:\myapp\plugins\sqldrivers c:\myapp\plugins\crypto(here must be contain the QCA's DLL for load) so the all needed dlls are completion. you must write code below: int main(int argc, char *argv[]) { QApplication a(argc, argv); //set the loading plugins path. qApp->addLibraryPath(qApp->applicationDirPath()); qApp->addLibraryPath(qApp->applicationDirPath() + "/plugins"); //init QCA dll QCA::Initializer init; QTextCodec::setCodecForLocale(QTextCodec::codecForLocale()); QTextCodec::setCodecForCStrings(QTextCodec::codecForLocale()); QTextCodec::setCodecForTr(QTextCodec::codecForLocale()); BankClient w; w.show(); return a.exec(); } so you can run the application in any window PC wihout creator. so there are your deploying componts. at last i must thank maciek , he offer a config file "qt.conf" to set the libray path . like with my code aboved. i have not try this method. i think it is a good way mentioned in QT sdk help. http://qt-project.org/doc/qt-4.8/deployment-windows.html http://qt-project.org/doc/qt-4.8/qt-conf.html but there is a questions about QCA???? the qca's dll have two paths. 1.c:\myapp 2.c:\myapp\plugins if i delete any of it ,the application will not run. so it is a question for me , Is any one know why does it.
  • Get QSharedPointer's Reference Count

    3
    0 Votes
    3 Posts
    4k Views
    G
    Wow, cool. I was just implmeneting my own atomic int. Didn't know there was a class in Qt. So should I inherit from QSharedPointer and in every constructor and copy constructor increase the count; and then decrease the count in the desctructor?
  • Detecting MouseClick on free area on screen

    5
    0 Votes
    5 Posts
    2k Views
    T
    I don't know Qt for Embedded Linux.... But you can try put buttons invisible (or a group - another "blank" window?) before start the video.
  • Symbol(s) not found

    3
    0 Votes
    3 Posts
    1k Views
    P
    I just installed XCode 3.2.2 to combat this issue. What's the default location of the stdlib library? I can't seem to find any .lib to add. Thanks
  • Any good book for QT

    5
    0 Votes
    5 Posts
    8k Views
    L
    [quote author="sierdzio" date="1350803550"]This is the standard one: "C++ GUI Programming with Qt 4":http://qt-project.org/books/view/c_gui_programming_with_qt_4_2nd_edition_the_official_c_qt_book. It's a bit outdated by now, but most information is still valid, and it's really well written. Very good for an initial introduction, and it also includes some more advanced knowledge towards the end.[/quote] +1 :) deepaksinghkushwah, why don't you have a look at the summary of "all books at Qt Dev Network":http://qt-project.org/books and select the most interesting and appropriate book for your needs?
  • QtMultimediaKit QtMobility

    13
    0 Votes
    13 Posts
    8k Views
    JKSHJ
    Qt doesn't natively support many multimedia formats. If you want that, you should use a 3rd-party library -- if you link libVLC to your project, you can play all the formats that VLC media player can play.
  • QtQuickView showFullScreen method on osx broken?

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • How to change my GUI Base Class (QWidget => QMainWindow) ?

    14
    0 Votes
    14 Posts
    24k Views
    U
    Ok, Thanks guys. Andre's method worked (with some more work to copy past the code from my QWidget to the new QMainWindow)
  • Qt request never trigger the finished() signal

    9
    0 Votes
    9 Posts
    5k Views
    U
    So i guess i will need to buid my own thread pool?
  • QMYSQL driver not loaded

    4
    0 Votes
    4 Posts
    3k Views
    J
    I found this site that helped me to build the plugin: http://ieatbinary.com/2011/07/11/how-to-enable-mysql-support-in-qt-sdk-for-windows/ I put the dll files into the C:\QtSDK\Desktop\Qt<version>\mingw\plugins\sqldrivers but still Qt says it can't find the driver. :/
  • Background color in StackedWidget

    16
    0 Votes
    16 Posts
    9k Views
    B
    I don't think so. If it is too big you can maybe shape it down to just the QStackWidget parts.