Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Segmentation fault, SIGSEGV

    6
    0 Votes
    6 Posts
    5k Views
    G
    Somehwere further down, the backtrace of the segfault should show you the line in your code that triggered the error.
  • What's the differences between Qt and .Net ?

    4
    0 Votes
    4 Posts
    12k Views
    R
    thank you for your answers. :)
  • [SOLVED]Help on QDialog..

    5
    0 Votes
    5 Posts
    3k Views
    M
    Its working now..after made the necessary changes... thanks Peppe @ //mainwindow.cpp QDialog *dlg = new QDialog; Ui::TestDlg ui; ui.setupUi(dlg); dlg->show(); @
  • Sequential animations seem to start early

    4
    0 Votes
    4 Posts
    2k Views
    M
    Just as a test, have you tried using longer durations (say 250ms each) for each of the animations? Starting with larger numbers then reducing the duration down may give some insight to the operation of the sequential animation and how its interacting with the individual animations. There may be a floor value where things don't behave quite right because of the resolution of the system timers.
  • [Solved] Embedding an existing GLWidget into a QML component

    9
    0 Votes
    9 Posts
    4k Views
    B
    Yes, the GL code was wrong. It was clearing the buffer and it was assuming a different coordinate system. I removed the calls to glClear and glIdentity and changed the vertices.
  • QToolTip

    5
    0 Votes
    5 Posts
    6k Views
    R
    [quote author="chernetsov0" date="1312173033"]Where do you put this action? It's not enough code to get the idea why tooltip is not popping. But maybe... [quote] Note that by default tooltips are only shown for widgets that are children of the active window. You can change this behavior by setting the attribute Qt::WA_AlwaysShowToolTips on the window, not on the widget with the tooltip. [/quote] [/quote] Sorry, tried setAttribute(Qt::WA_AlwaysShowToolTips); didn't work, and as for window, what do you mean? I normally just have to use set, with no window name, if anything, it'd be AdvancedTextEditor..
  • QWidget window fails to open when "SetParent" is not null

    4
    0 Votes
    4 Posts
    4k Views
    G
    The usual way is to pass the parent widget in the constructor: @ // change your constructor declaration to public: mainWindow(QWidget *parent = 0); // change your constructor defintion to mainWindow::mainWindow(QWidget *parent) : QWidget(parent) { //.... } // and construct your object this way: cityDialogWindow = new mainWindow(this); @
  • 0 Votes
    2 Posts
    2k Views
    B
    Turns out I needed to make another call: @ _view->activateWindow(); _view->setFocus(); @
  • Is it possible to create a gif file, or better, animated gif file in Qt?

    7
    0 Votes
    7 Posts
    12k Views
    P
    Eddy, animation framework is for creating animated GUI. I do not need that. I need the following. Say, I have a set of image files (for example, 100 of them) representing sequential frames. I want to make an animated file from those frames. There are a few standard options, including animated gif, AVI, mpg, etc. Can Qt help me in doing that? If Qt cannot help, then are there any other options which I could use to make my code to produce an animated file? Animated gif is one of the most widely used standards, and, by the way, Qt can read it. It would be nice, for example, if QMovie could save frames in animated gif, AVI or any other standard format. I just wonder maybe someone already tried to produce a file in a standard animated format?
  • Run executes 4 terminals

    8
    0 Votes
    8 Posts
    4k Views
    G
    That's correct, but you can't use "cin" command's because it only supports output and no input. That's the whole problem otherwise I wouldn't need to do it this way haha. Best regards
  • Mouse Click in QCoreApplication

    2
    0 Votes
    2 Posts
    2k Views
    L
    I don't think Qt has any such functionality. You'll have to use a different library to find the mouse position in a console app.
  • [solved] How to make a code to wait while a file is written on hard drive?

    17
    0 Votes
    17 Posts
    9k Views
    M
    Good deal. Glad to help! Please be sure and edit the title of the thread to add [Solved]. Thanks!
  • How can i delete all items under selected item in treeview

    2
    0 Votes
    2 Posts
    4k Views
    D
    Take the selected QStandardItem and call removeRows / removeColumns on it.
  • [Soved]How to make my selection available in the system clipboard

    3
    0 Votes
    3 Posts
    2k Views
    S
    Ok it work. Thanks
  • 0 Votes
    6 Posts
    3k Views
    EddyE
    bq. Do i need to tag this topic as closed or something? Yes, please could you edit your title and add [solved] in front of it. There are no other means at this moment, but the Trolls are implementing a way now.
  • Bottom-aligned QPlainTextEdit

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Shadow building and gets static librariess

    3
    0 Votes
    3 Posts
    3k Views
    P
    Okay. But now it will copy library to my BIN folder (because it is set up globally (DESTDIR) ). Hmm...I must remake my QMAKE. But, anyway, thanks.
  • 0 Votes
    13 Posts
    17k Views
    EddyE
    Hi Umen, I see that you started a new topic with your last question. If you consider this thread solved can you edit the title and add [solved] ? Thanks
  • Strange behavior QTreeView

    11
    0 Votes
    11 Posts
    7k Views
    G
    Hi, I don't know QIdentityProxyModel. But as you only have a standard proxy model in 4.7, you have to have an index, that is created on this model and do your own mapping. You index function may never return an index from the source model directly. The function you mention can be called inside methods of the proxy model, e.g. for mapToSource, where it also works in 4.7.
  • How to insert two List of QStandardItem into QStandardItemModel?

    2
    0 Votes
    2 Posts
    3k Views
    D
    Of course two calls to insertColumn will insert two different columns; use a foreach + appendRow.