Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.9k Posts
  • [Solved] Differentiating multiple signals going to a single slot

    3
    0 Votes
    3 Posts
    2k Views
    T
    You can get pointer to pushbutton in slot by using QObject::sender() method. If you have access to pushButtonList (I suppose it's QList) you can get button index with pushButtonList.indexOf(sender()). If you don't have access to pushButtonList from slot you should check QSignalMapper as mlong suggested.
  • [SOLVED] QTimer need stop without signal

    13
    0 Votes
    13 Posts
    12k Views
    JeroentjehomeJ
    Well, it looks pretty clear to me and when reading the documentation carefully with a clear C++ education not misleading at all. Still, feel free to make a suggestion to the bug tracker. Maybe they will update the documentation.
  • error: 'av_register_all' was not declared in this scope

    5
    0 Votes
    5 Posts
    8k Views
    T
    Problem in av_register_all(). "It's not declared in this scope" - it mean that you don't include file with defenition of av_register_all(). Maybe you should remove line #8 and #11 (in my wrapper).
  • QScriptEnging::evaluate() returning value

    4
    0 Votes
    4 Posts
    3k Views
    T
    I will give you an example. script.js @ function pF( number ) { return sqrt(number); } function pR( number ) { return number*number; } if( pR( pF(25) ) == 25) { print("I am Qt Script PRO!"); } @ mainwindow.cpp @ //... QString src = scriptFile.readAll(); QScriptValue a = engine.evaluate(src); if(a.isString()) qDebug() << a.toString(); //... @ It will print to debug log: "I am Qt Script PRO!".
  • QAbstractItemModel beginInsertItem and update model problem.

    2
    0 Votes
    2 Posts
    2k Views
    JeroentjehomeJ
    Hmm, the endRemoveRows() does emit a signal to update the view. I would suggest looking into the View that you use if there is a "expand" level setting. The model looks correct to me.
  • Can I mix HTML5 Local application with C++?

    11
    0 Votes
    11 Posts
    13k Views
    A
    QML + QtWebKit + HTML5 UI will be very tricky, and you will need to do C++ coding anyway if you need USB/Serial access. So, just use pure Qt C++, subclass QWebView & QWebPage and you can do then anything you want through bridging.
  • [SOLVED] Write to serial with Qt Gui Project

    4
    0 Votes
    4 Posts
    4k Views
    D
    Yes, Windows provides very poor support for Posix.
  • Tree widget + list widget on main window

    2
    0 Votes
    2 Posts
    1k Views
    K
    Yes you can. In designer look at the sizePolicy property (expand it) and play around with Horizontal Policy and Vertical Policy. Make sure you have your tree and list widgets in a Vertical Layout.
  • [Self-Sovled]X11R6/include:Not a directory

    11
    0 Votes
    11 Posts
    4k Views
    P
    I edit my makefile and the replace X11R6 with other value, the problem is fixed. basically, on my computer has no any X11R6. anyway, thanks everyone who posted here
  • [Self-Sovled]DLL can not be debugged

    3
    0 Votes
    3 Posts
    2k Views
    P
    thanks a lot for your post , the problem has been fixed after I add corresponding header files. [quote author="tucnak" date="1339585795"]Just make Debug build. Your build may be Release build.[/quote]
  • [SOLVED] Drag and Drop Issue

    4
    0 Votes
    4 Posts
    3k Views
    S
    Done... Thanks for the reminder...
  • Problem with central widget and style sheet

    10
    0 Votes
    10 Posts
    7k Views
    C
    thanks for your help, with a search a see that generally there is a problem with centralwidget/mainwindow and background image
  • Custom DoubleSpinBox needed

    3
    0 Votes
    3 Posts
    2k Views
    T
    You may inherit and edit it.
  • Flickable in qt

    10
    0 Votes
    10 Posts
    5k Views
    P
    Please reply!!!!
  • Encoding QDomText for &quot;\n&quot;

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Flickable horizantal scrolling list of custom widgets

    3
    0 Votes
    3 Posts
    3k Views
    B
    Hi mlong, I have verified that thread, but the solution provided is for qlistwidget, In my case i need to handle list of custom widgets for flicking
  • [self-solved] Can't listen to multicast group on multiply interfaces

    2
    0 Votes
    2 Posts
    2k Views
    M
    Bad luck, folks.... :( the only possible (found by now) solution is a dirty glue in lib source: @ bash-3.2$ pwd /Volumes/data/qt-everywhere-opensource-src-4.8.2/src/network/socket bash-3.2$ diff qnativesocketengine_unix.cpp.orig qnativesocketengine_unix.cpp 639a640,647 for(int i = 0 ; i < addressEntries.size() ; ++i) { if (addressEntries.at(i).ip().protocol() == QAbstractSocket::IPv4Protocol) { firstIP = addressEntries.at(i).ip(); break; } else continue; } bash-3.2$ @ sad... sad, story....
  • Is possible in Qt change a value or property of a parent widget?

    7
    0 Votes
    7 Posts
    4k Views
    A
    [quote author="miroslav" date="1339487318"]Note that if you are asking about properties, most experienced Qt developers will think if QObject properties, maybe even the dynamic kind (I certainly did). Those are a different kind of beast. In your case, the signal-slot mechanism is what you need.[/quote] Yes, in this moment this is all I need; but in the future....... ;-)
  • [Solved] Read from QSslSocket results irregular data

    9
    0 Votes
    9 Posts
    4k Views
    D
    I found the (simple) problem! In NNTP protocol some lines (I read line by line now) begins with a double-dot, this must detect and replace with a single dot, that's it! All CRCs are conform now! Thanks to all for help anyway!
  • (Newbie) Qt GUI Application

    11
    0 Votes
    11 Posts
    5k Views
    D
    Another question... Can I make all UI in HTML5 and use C++ to communicate with USB/Serial?