Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • Problem with keypress event?

    11
    0 Votes
    11 Posts
    12k Views
    P
    [quote author="KA51O" date="1326180354"]trolling or for real ?[/quote] Really that was the main problem.
  • Custom abstract class as a model in model/view architecture

    3
    0 Votes
    3 Posts
    2k Views
    A
    Besides needing to know what consitutes a row in your model, the items in your model also need to support some kind of interface that the model can use to query for the information it needs, like the string value or an icon or perhaps other relevant data.
  • [Solved] Can't find source for Qt Notepad tutorial

    3
    0 Votes
    3 Posts
    3k Views
    R
    I found that source. Thanks!
  • Making a QML Element "droppable"

    3
    0 Votes
    3 Posts
    3k Views
    sierdzioS
    Oh good, I was about to reply now I got back from classes. Nice solution, thanks for sharing.
  • How to determine whether a Widget is really visible? (in a scroll area)

    2
    1 Votes
    2 Posts
    4k Views
    V
    Additional information: calling the widget's visibleRegion() gives correct information - but where should I test it? I don't want to test with a timer, I would like to get an event about it or test it when a related event occurs. Is there any related event (occurs when the widget is moved into / moved out from the visible area)?
  • Extension Dialog (Slide-out window idea)

    2
    0 Votes
    2 Posts
    2k Views
    C
    On the Mac you can just use the Qt::Drawer-style for Qt::WindowType. I think on other platforms, however, you will have to basically hand-code the whole thing.
  • Project folder hierarchy and subprograms help

    2
    0 Votes
    2 Posts
    3k Views
    H
    In .pro file you have a variable TEMPLATE - default is app. You can try use a - "subdirs template":http://developer.qt.nokia.com/doc/qt-4.8/qmake-project-files.html#project-templates Check also "DEPENDPATH":http://developer.qt.nokia.com/doc/qt-4.8/qmake-variable-reference.html#dependpath - this can be done from Qt Creator interface. You can also think about change executable[1-5] from app to dynamic libs or plugins.
  • QNetworkaccessmanager - post

    21
    0 Votes
    21 Posts
    10k Views
    T
    Ok thank you for the tip.
  • 0 Votes
    3 Posts
    2k Views
    S
    I found a solution but I do think its a bug. When I create the combobox, I immediately call setEditable(false), even though its the default (sometimes I set default values just for readability so I know they are set or whatnot, I never thought this would be an issue). I commented out this call and the problem went away. Seems weird that that made such a big difference but the problem was appearing repeatably every single time I'd pull the box down and then click away and as soon as I removed that line, it stopped happening. I meant to repost that as the "solution" but forgot.
  • Qt 4.8.0 Signal does not act like a Qt::DirectConnection

    3
    0 Votes
    3 Posts
    2k Views
    W
    If i remove /O2 then the Qt::DirectConnection do not work anymore. https://bugreports.qt.nokia.com/browse/QTBUG/fixforversion/11905 There seems to be a lot of broken things in VS2010 while 4.8.0 was introduced.
  • How to save data in the database("QSQLITE")?

    3
    0 Votes
    3 Posts
    1k Views
    P
    [quote author="Lukas Geyer" date="1326110211"]This is not how databases work. Data has been stored at the time a transaction has been committed. If it is not, there's something wrong with your code - which you may provide for further assistance.[/quote] ok i will check my code if no solution i found i will post here.
  • TCP/UDP Tunnel development in Qt

    11
    0 Votes
    11 Posts
    8k Views
    D
    farooqmian as I had the same questioning and think a better answer than Volker did (whose answer I also disagreed in my thread by the way) I engage you to visit that "reference":http://vtun.sourceforge.net/tun/ where you can choose how far you want to go : tun or tap and. Then use it with SSL thanks to "this blog":http://xzis.me/2010/08/basic-samples-for-ssl-communication-using-qt/ where you'll have a concrete example. My understanding is that you want to learn by try process, so if this is true please let me know if you succeed or found something another tunneling solution.
  • 0 Votes
    3 Posts
    2k Views
    G
    @Volker thank you for response. Reason of this problem was not Qt-related. I somehow removed qsqlite plugin from my system. After reinstalling Qt everything works fine.
  • How to get common element from a group of QStringList?

    5
    0 Votes
    5 Posts
    4k Views
    A
    Ok thank u Andre..:) I'll consider your valuable suggestion...I'll go through that book....
  • 0 Votes
    5 Posts
    5k Views
    ?
    Sorry for the misunderstanding. What I meant was a text that could be edited when editing the cell, that was the reason what I mentioned to use QLineEdit instead of QLabel. But what surely was very clear, was your advice. I got it working exactly as you suggested. Thanks again for your help.
  • Adding Qt to an Existing Visual Studio project?

    10
    0 Votes
    10 Posts
    12k Views
    K
    If you have an proper *.pro file You can do : qmake -tp vc (see QMake manual "Creating Visual Studio Project Files") regards karl-heinz
  • How to get the cell coordinates in QTableView

    5
    0 Votes
    5 Posts
    6k Views
    A
    These are relevant: "Sections on delegate classes":http://developer.qt.nokia.com/doc/qt-4.8/model-view-programming.html#delegate-classes Spinbox delegate "example":http://developer.qt.nokia.com/doc/qt-4.8/itemviews-spinboxdelegate.html Color delegate factory "example":http://developer.qt.nokia.com/doc/qt-4.8/itemviews-coloreditorfactory.html
  • Lupdate error ./horizontal not found ?

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • [SOLVED] change the Qstackedwidget page when the Qtreeview item is clicked

    10
    0 Votes
    10 Posts
    10k Views
    K
    [quote author="Volker" date="1326033677"] You see the characters "QStandardItem::data" literally somewhere in the few lines I've posted? No? So what makes you think that this can be the cause of an error message then? Do a search for "Tree" and replace it by "List" in your source code and you'll run into the very same troubles. BTW: Why are you using a QTree widget together with a QStandardItem?[/quote] your right volker. your code did not give the error message and I apologize. read what i said about that in my next post above. I am not replacing the code. i am starting over with a listwidget code that i got the signal and slot to work. everything is up and running now and without any problems. lately, i never really had too many problems declaring code up until the treeview code that was a bit too complicated for me. nevertheless, I am still studying c++ so bare with me until i get it all figured out.
  • Instance of another program window

    2
    0 Votes
    2 Posts
    2k Views
    G
    Only by means of platform specific API, there's nothing built-in in Qt for that.